As designed Filters show disabled Type choices

beerForo

Well-known member
Affected version
2.1
Filter:
Any
Images
Audio
Videos
Embeds


I have Audio and Video disabled so they should not appear in front-end filters.
 
I think on the whole we're not going to make any changes here.

These filters appear in different contexts and depend on different things. Sometimes we have a mixed list, sometimes we have a list of category media, sometimes we have a list of album media. Categories depend on category settings. Albums depend on user permissions.

Enumerating the applicable types in any given context doesn't necessarily seem worth the effort.

For your purposes if you do globally have audio and video uploads disabled through various settings, the best thing to do is probably just modify the template. It is the xfmg_media_filters template and you would just remove these two lines:

HTML:
<xf:option value="audio">{{ phrase('xfmg_audio') }}</xf:option>
<xf:option value="video">{{ phrase('xfmg_videos') }}</xf:option>
 
Top Bottom