Page 1 of 1

filelist plugin: option to exclude expired files from list?

Posted: 14 Dec 2025, 04:56
by AndyMarchand
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

Re: filelist plugin: option to exclude expired files from list?

Posted: 14 Dec 2025, 21:14
by Jan
Hi, yes, all rights or dates are managed by component which checks all of them. Plugin is additional way to display file items in article and it does not check rights or dates as all rights should be managed by the parent item which is article. This means, if something should be not displayed e.g. for users, the rights should be managed for the article where the plugin is displayed. The plugin is independent to components rights, etc.

Jan