Page 1 of 1

Feature request: Allow ordering on filelist view on Phoca Download Plugin

Posted: 05 Nov 2019, 14:28
by kokbira
Well, Phoca Download Plugin allows to show a list of files of certain category embedded on an article in Joomla, using {phocadownload view=filelist|id=XX|limit=YY}, where XX is the category ID and YY is the number of files to show, but it does not control the list ordering.

The order of files is set only on Phoca Download general settings, so you cannot set different ordering settings for different categories.

I faced with the issue to put files ordered by ascendant title in a category and to put the last 6 files added in another category where files have the following name format (title=name): CATEGORY YYYY-MM, where YYYY is the 4-digit year and MM is the 2-digit month. So, for this second category, I would ordering by descendant title and limit to view only six files.

I found that solution, to change the code, and it was very simple:

https://joomla.stackexchange.com/questi ... oca-downlo

So, I would like to have that possibility developed for filelist view on Phoca Download Plugin, because I see that it would be very simple - the developers can create at least a new case for each ordering (example, maintain filelist, create filelistdt, filelisstat etc.). Other changes would be made to allow more elegant syntax of calling Phoca Download Plugin, for example {phocadownload view=filelist|id=XX|limit=YY|ordering=ZZ}.

Re: Feature request: Allow ordering on filelist view on Phoca Download Plugin

Posted: 05 Nov 2019, 14:46
by Jan
Hi, thank you for the info.

Added to feature request list.

Jan

Re: Feature request: Allow ordering on filelist view on Phoca Download Plugin

Posted: 17 Apr 2020, 22:57
by Jan
Hi, in version 3.2.0 you can set "ordering" parameter in plugin code.
https://www.phoca.cz/documents/51-phoca ... oad-plugin
https://www.phoca.cz/news/1072-phoca-do ... 0-released

Jan