Documentation Center

Adding Navigation to Page Templates

Use the Show Experience Optimization Navigation Template Building Block to insert code in your Web page for generating navigation links to related items in a Web page.

Before you begin

To create templates you must have Template Management rights and Write permissions for the Folder in which you intend to create the template.

Procedure

  1. Open Template Builder.
  2. Open or Create a Compound Page Template.
  3. Make sure your Dreamweaver template has <tcdl:region> tags, for example
    <tcdl:region id="Sidebar" type="SmartTarget"> 
    
    </tcdl:region>
  4. Add the Add Experience Optimization Query Template Building Block after the Dreamweaver Template (or equivalent output) in your Page Template.
  5. Add the Show Experience Optimization Navigation Template Building Block after the Add Experience Optimization Query Template Building Block.
  6. Add the Apply Experience Optimization Settings Template Building Block at the end of the Page Template.
  7. Select the Show Experience Optimization Navigation Template Building Block and define the attributes:
    You can define the following attributes for Show Experience Optimization Navigation:
    AttributeDescription
    Page Region*Specify the region of your Web page where navigation sections and links are displayed. The value must correspond with an id value specified in the <tcdl:region> tag of a Dreamweaver Template exactly (Page Region values are case-sensitive).
    Show CategoriesSet 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.
    Show number of itemsBy default, the navigation links display a number between brackets indicating the number of related content items, for example Books (12), Music (1). Set to false if you do now want these numbers appearing.
    Header markupDefine a header section (the content) to display at the top of a navigation section. The text in the header should clearly identify the navigation links displayed within the section.
    Footer markupDefine a footer section (the content) to display at the bottom of a navigation section.
  8. Select Debug > Run to run the template, or Debug > Run with Page if it is the first time you are running the Compound Template (you are prompted to select a Page).