All Collections
Legacy Interfaces
Legacy: Filtering category lists in templates
Legacy: Filtering category lists in templates

This article describes an older version of our software

Bryan Nye avatar
Written by Bryan Nye
Updated over a week ago

This article describes an older version of our software. Please see the updated version of this article here.

MetaLocator allows you to display lists of a categories for a given location in your templates.  Sometimes our users want to hide or filter certain categories from these public facing lists.  For example, you might have a certain utility category that's used to filter your data, but is not relevant to your visitor.  We therefore provide a filtering attribute by category group.  In this example, only categories from the Primary category group will be displayed:

{taglist tag_group="Primary"}

If a language constant has been provided for the tag_group, you must filter with that constant instead of the group name as LOCATOR_TAG_GROUP_PRIMARY, as in {taglist tag_group="LOCATOR_TAG_GROUP_PRIMARY"}

In this example, all categories will be displayed:

{taglist}

This allows you to "hide" certain categories from public view.

Other tags that support this feature are:

{taglistwithdescription}
{groupedtaglist}

Each of these tags can only be used once in a single template.

Did this answer your question?