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}.
Feature request: Allow ordering on filelist view on Phoca Download Plugin
- kokbira
- Phoca Newbie
- Posts: 5
- Joined: 01 Nov 2019, 19:25
- Jan
- Phoca Hero
- Posts: 43423
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Feature request: Allow ordering on filelist view on Phoca Download Plugin
Hi, thank you for the info.
Added to feature request list.
Jan
Added to feature request list.
Jan
If you find Phoca extensions useful, please support the project
- Jan
- Phoca Hero
- Posts: 43423
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Feature request: Allow ordering on filelist view on Phoca Download Plugin
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
https://www.phoca.cz/documents/51-phoca ... oad-plugin
https://www.phoca.cz/news/1072-phoca-do ... 0-released
Jan
If you find Phoca extensions useful, please support the project