Skip to content

Category heading tag with no channel parameter doesn't work #5414

Open

Description

@blue-dreamer

Description of the problem

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions