You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Category heading tag with no channel parameter doesn't work #5414
Using the exp:channel:category_heading tag with using category url titles in links it requires a channel parameter to work. Using category ID's in URL's works but isn't always a desirable format.
There are situations where you want to display categorised lists of files using the exp:file:entries tag from a directory - i.e. using categorisation in the File manager, but no Channels are involved. The category group is only used to categorise files.
So using something like {exp:channel:category_heading category_group="7"} you get no output as it needs a channel parameter because of the category URL format in use.
You can make it work by assigning the files category group to any channel and using that channel parameter, but that's hacky and you might not always want authors to access those categories. The only safer way is to create a dummy channel (super admin access only) to use, not ideal.
Solution
The relationship between the exp:channel:category_heading and category URL titles in links requiring a channel parameter has always been there so it might be a bigger job to sort through for a fix. However it might be possible to have a new parameter to exclude channel association, something like exclude_channel="all|none|foo"?
Activity