Hello Phoca community,
I am using Phoca Download with Joomla and the content plugin like this:
{phocadownload view=filelist|id=5|status=active|limit=10}
The list is working fine, but I noticed the following behavior:
Files which are marked as "Expired" (publish_down date reached) are still shown in the file list, as long as they are published. When clicking on such a file in the frontend, the download is correctly denied with an access error message.
From a user perspective this is a bit confusing, because expired files still appear in the list but cannot be downloaded.
My question is:
Is there any existing option (global or plugin parameter) to exclude expired files from the filelist view automatically?
Or is this currently not supported by design?
I understand that access control is checked on download, but for internal or restricted areas it would be very helpful to hide expired files already on list level.
As an additional idea, if this option is not yet available:
Would it be possible to add an optional plugin parameter for the filelist view, e.g. something like:
exclude_expired=1
This would allow site owners to explicitly control whether expired files should be hidden already on list level, while keeping the current behavior as default.
In internal or restricted areas this would help to avoid showing non-downloadable items to users.
Thank you very much for clarification and for your great work on Phoca Download.
Best regards
Andy
filelist plugin: option to exclude expired files from list?
-
AndyMarchand
- Phoca Newbie

- Posts: 3
- Joined: 05 Jan 2025, 01:50