Configure Tagged Browsing
Overview
This page explains how to configure tagged browsing using a faceted tree in Bloomreach Content.
When to Use
Use tagged browsing to allow users to navigate content by selecting tags, with each selection refining the results based on tag combinations.
Prerequisites
- A project created with the Maven archetype
- News and Tagging features added to the project
- News documents with tags stored in a multi-valued String property (
hippostd:tags)
Implementation
To enable tagged browsing, configure a faceted tree that sorts and limits facet values. This approach uses the faceted navigation feature to present tags as navigable facets.
Basic Faceted Tree Configuration
The following configuration creates a faceted tree that lists the 10 most common tags. Selecting a tag refines the navigation to show the 10 tags most commonly combined with the selected tag, and so on for additional selections.
/content/documents/myproject: /faceted-news: jcr:primaryType: hippofacnav:facetnavigation hippo:docbase: d2b1775c-fb97-4080-bd66-ede4ac874b5a hippofacnav:facets: [ hippostd:tags ] hippofacnav:facetnodenames: [ "Tags${sortby:'count', sortorder:'descending', limit:10}" ]
Example Faceted Tree Structure
The resulting faceted tree structure appears as follows:
/content/documents/myproject:
/faceted-news [51]:
/Tags [21]:
/hippo [12]:
/Tags [12]:
/hippo [12]:
/cloud [6]:
/Tags [6]:
/cloud [6]:
/hippo [6]:
/hippo:resultset [6]:
/hippo:resultset [6]:
/record [3]:
/bloomreach [3]:
/momentum [3]:
/hippo:resultset [9]:
/gogreen [9]:
/cloud [6]:
/record [3]:
/bloomreach [3]:
/growth [3]:
/sustainability [3]:
/momentum [3]:
/hippo:resultset [21]:
/hippo:resultset [30]:
In this example, each tag node displays the count of documents associated with that tag. Selecting a tag further refines the available tag combinations.
Combining Tagged Browsing with Other Faceted Navigation Features
Tagged browsing can be used alongside other faceted navigation features, such as facet value ranges. For example, you can add date-based ranges to filter news documents by time periods in addition to tags.
/content/documents/myproject: /faceted-news: jcr:primaryType: hippofacnav:facetnavigation hippo:docbase: d2b1775c-fb97-4080-bd66-ede4ac874b5a hippofacnav:facets: [ hippostd:tags,\ \ "myproject:date$[{name:'today', resolution:'day', begin:0, end:1},\ \ {name:'this week', resolution:'week', begin:0, end:1},\ \ {name:'this year', resolution:'year', begin:0, end:1}]" ] hippofacnav:facetnodenames: [ "Tags${sortby:'count', sortorder:'descending', limit:10}", Date ]
With this configuration, selecting a date range such as 'this week' enables tagged browsing within news documents published during that period.
Verification
- Navigate the faceted tree in the console or frontend.
- Confirm that selecting a tag refines the list to show documents with that tag and updates the available tag combinations.
- If using additional facets (such as date ranges), verify that tag navigation is limited to the selected range.