Phoca Download has a plugin to show a list of files in certain category using {phocadownload view=filelist|id=XX|limit=YY}, where XX is the number of category and YY is the number of files to show. For the particular case, I would like to show the last 6 files uploaded to certain category.

I would like to show certain categories to show on certain title ascendant ordering and other to show on certain title descendant ordering, but it is possible to use only one ordering on Phoca Download settings.

There is no parameter in Phoca Download Plugin documentation that let us change file ordering particularly on that view.

Do you know how so solve that?

1 Answer 1


Well, I found only a fix on code change.

  1. On plugins/content/phocadownload/phocadownload.php copy from case 'filelist': to break; and paste bellow changing filelist to filelistdt;
  2. Replace $fileOrdering = PhocaDownloadOrdering::getOrderingText($ordering, 3); on that case to $fileOrdering = 'a.title DESC';
  3. On Phoca Download Settings, use title ascendant for default ordering;
  4. On the use of Phoca Download Plugin, use {phocadownload view=filelist|id=XX|limit=YY} for title ascendant ordering or {phocadownload view=filelistdt|id=XX|limit=YY} for titls descendant ordering.
  5. For the last 6, use {phocadownload view=filelistdt|id=XX|limit=6}

The only issue I found with that is when Phoca Download Plugin would be updated, that changes will be overwritten :(


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.