Restrict frontend redering to image files
we're working on a nice project utilizing your extension and have one suggestion for improvement:
We're using the mode where it will display the entire content of a storage folder. So far so good, but our customers manage to upload all kind of garbage, from ini files to mp3s... :-)
Since this breaks the gallery in the frontend, could you possible apply a filter for the most common image types, or - even better - filter the files according to the install tool config setting [GFX][imagefile_ext]?
#1 Updated by Felix Nagel about 1 year ago
- Tracker changed from Bug to Suggestion
- Status changed from New to Needs Feedback
sounds like a useful addition! Problem is that file collection is part of the core and therefore our options are limited.
Not really sure how to do this for all "Types" (Collection of static files, Folder from storage, Select by category) of a file collection but it should be possible to add a new type, something like "Collection of images".
What do you think? Is that useful for your use case?
#2 Updated by Felix Nagel about 1 year ago
Take a look at this commit: https://github.com/fnagel/generic-gallery/commit/b1a260347a2893ac9963aa150c2c8eea1821238c
#4 Updated by Felix Nagel 12 months ago
I've added a filter to remove non image files from collections. See latest commit (https://github.com/fnagel/generic-gallery/commit/44df5d366d4f30e7d6ff5bbb82daf7fc82229716) to master!