Classify Content: Categories & Tags

Categories and tags help organize and filter content items, such as lists, blogs, events, and images. After categories and/or tags have been created and applied to content items, the category or tag widget can be added to a page, allowing the user to click on a desired category/tag to filter the content on the page.

Categories and tags can also be applied to content items to only display specific content items on a page.

The Health Blog example below displays the category widget in the right column with the Allergy category selected. The blog list in the left column shows only blog posts with the Allergy category applied to them. When a specific category is selected, a unique URL will be rendered in the browser's address bar. This example created the URL: https://www.utmbhealth.com/health-blog/!_/-in-category/categories/utmbhealthcom/health-blog/allergy

Health blog example showing the Allergy category selected

Before getting started learn the basics:

Layout Views

The widget component template

Learn how to do it:

Categories List

Categories List Dropdown

Tags List

Tags List Dropdown

Tags List - Cloud List

Tags List - Tag Cloud

Customizations

Customize with CSS Classes.

Learn how to do it:

Hide item count

Categories Refer to the Learn how to do it section above

Tags Refer to the Learn how to do it section above

Training

Add Tags and Categories to content

Add Categories to a page

Add Tags to a page

  • Add Tags widget to a page

    Within the edit view of a page, you can add a tags filter to a page. You must apply the tags to a content item first.

    1. On the right side menu, click the Content tab, click the Classifications drop-down menu and find the Tags widget. Click, hold and drag the Tags widget onto the desired part of the page, and then release the widget.

    2. Screenshot of adding the tags widget to a page
  • Selecting a Tags widget template to be displayed on a page

    Within the edit view of a page, you can add a tag filter to a page. For the filter to be effective, you should have content on the page that has the tags applied to them (i.e. blog posts, list items, events).

    1. In the edit view of the page, click edit on the Tags widget.
      Screenshot of the edit button on a tags widget
    2. Select the desired layout under the Template drop-down menu.
      Screenshot of tags widget settings
  • Choose which tags to display

    After you place the Tags widget on a page, open the widget designer by clicking the Edit button in the upper-right corner of the widget. 

    1. Under Which tags to display? select one of the following:

      • All tags
        All tags will be displayed in the list.
      • Selected tags...
        A custom selection of tags is displayed. To select one or more tags you want to display, click the Select button.
      • Only tags used by content type...
        A custom selection of tags is displayed. Only tags assigned to the selected content type items will be displayed in the list.
    2. Show item count
      The count of all items to which the tag is assigned is displayed.
    3. Show empty tags
      Tags that are not assigned to any item are displayed.
    4. Sort tags
      By default, tags are sorted by their title (A-Z). You can select a different sorting criterion:
      • By Title (A-Z)
      • By Title (Z-A)
      • As set manually
        This option is available only when you have selected specific tags using Selected tags… option. If you select As set manually, tags are displayed in the selected order.
      • As set in Advanced mode
        DO NOT use this setting
  • Create a Categories/tags Subpage

    For the categories/tags filtering to function properly, you must build a subpage so that when a user clicks the filter it'll render the filtered results in a separate page. 

    1. Create a page
      • You can name this page Categories or Tags, but the page title is your preference
      • Put the page under the page with the categories/tags widget on it. This will be the categories/tags subpage.
      • Be sure to uncheck Show in navigation
    2. Drag and drop the content widget that you will be adding categories/tags to. For instance, if you applied categories to blog posts, add the blog widget to this page.
    3. It is best practice to add the categories/tags widget again to this page in a right or left column. This allows the user to filter when they are on the filtered results page.
  • Render filtered results in the categories/tags subpage

    Within the edit view of the categories/tags parent page, you'll need to select where the filtered results are rendered. 

    1. Click edit on the categories/tags widget.
    2. On the Categories widget:
      1. Click the Setting tab and then click the Advanced button.
      2. Click the Model button.
      3. In the Base URL field add the URL to the page to the categories/tags parent page (i.e. https://www.utmbhealth.com/health-blog)
      4. In the UrlKeyPrefix field add _
      5. Click the Save button when finished
    3. On the tags widget:
      1. Click the Advanced button.
      2. Click the Model button.
      3. In the Base URL field add the URL to the page to the categories/tags parent page (i.e. https://www.utmbhealth.com/health-blog)
      4. In the UrlKeyPrefix field add _
      5. Click the Save button when finished
    1. Make categories/tags a link

      You can make the category/tag link to the subpage to display all content items with the selected category/tag.

      1. Go to the live category/tag subpage (created in the previous step), click on a category/tag filter, then copy that link. (i.e., https://www.utmb.edu/accessibility/digital/accessibility-news/!_/-in-category/categories/a11y/topics/)
      2. Add the link (without the specific category/tag) to the blog properties:
        1. Open the Blog or List properties:
          • For Blogs: Click the Content navigation menu item and then select Blogs.
            screenshot showing blogs under blogs menu
          • For Lists: Click the Content navigation menu item and then select Lists.
            screenshot of lists in the content menu
        2. To the far right of the blog/list that you are filtering, click the three dots under Actions and select Title & properties from the drop-down menu.
          Screenshot of blog properties
        3. Under the Custom fields section, paste the URL in the Categories URL or Tags URL fields. Be sure to remove any specific categories/tags from the URL and leave off the trailing "/".
          Screenshot of Blog categories/tags URL fields
        4. Click Save Changes

    Explore content items that you can apply filtering to:

    On this page: