Documentation Center

Using custom fields as navigation labels

In the Business Manager you can create a custom field to use as a label for navigation sections generated in your Web pages.

Procedure

  1. Open the Business Manager.
  2. Go to System Manager > System > Business Manager defaults page.
  3. In the Custom fields as facet identifiers section, enter a value in Custom field 1.
  4. Click Add to add additional fields.
  5. Click Apply to save changes.
  6. Navigate to Manage Navigation > Manage facets.
  7. Select a facet and note that your custom field appears.
  8. To output the values of these fields in your published Web page, you need to edit your Dreamweaver Template as follows:
    JSP example
    <tcdl:navigationSectionHeader>
        <c:out value="${section.customFieldValues['MyNavigationLabel']}"/>
    </tcdl:navigationSectionHeader>  
    ASPX example
    <tcdl:navigationSectionHeader>
       <asp:Label runat="server" Text="<%# ((NavigationSection)Container.Parent).GetCustomFieldValue(&quot;MyNavigationLabel&quot;) %>" />
    </tcdl:navigationSectionHeader>  
    REL example
    <tcdl:navigationSectionHeader>
        #{section.customFieldValues['MyNavigationLabel']}
    </tcdl:navigationSectionHeader>