tcdl:navigation
The <tcdl:navigation> tag generates navigation links to related items in a Web page. Each navigation section comprises a header, navigation links and footer sections. A navigation section is generated for each related facet; a facet is an attribute in Fredhopper that can be used for navigating content. You define what attributes are facets in the Business Manager.
Description
When handling a query (a normal query or a search query), Fredhopper builds a facet map containing a collection of facets which relate to the query.
When you implement navigation, Experience Optimization will first loop over the facet collection and create a navigation section for each facet. Each
<tcdl:navigationSection> tag contains:
- A header section.
- A section containing navigation links.
- A footer section.
Syntax
<tcdl:navigation>
<tcdl:itemTemplate>
<tcdl:navigationSection>
<tcdl:navigationSectionHeader>
<h4>##title##</h4>
<ul>
</tcdl:navigationSectionHeader>
<tcdl:itemTemplate>
<li><tcdl:navigationLink showNumberOfItems="true" /></li>
</tcdl:itemTemplate>
<tcdl:navigationSectionFooter>
</ul>
</tcdl:navigationSectionFooter>
</tcdl:navigationSection>
</tcdl:itemTemplate>
</tcdl:navigation>
Attributes
The <tcdl:navigation> tag has the following attributes:
| Attribute | Description |
|---|---|
showCategories | Set to true to display the Categories facet (the default facet provided in Business Manager), otherwise just the facets you have created in the Business Manager. The default is false. |
var | Set the name of the item collection (by default, set to sections) |