Navigator formatting examples
You use HTML to format the layout of a navigator.
- Navigator elements can have more than one element design.
- Each level in the navigator can have its own element design.
- If you want all the levels in your navigator to look the same, then you only have to build one element design.
- If there are three levels in a site area but only two element designs in your navigator, then the last two levels in your navigator use the final element design.
The following tables contain some examples of the ways you can format the look of a navigator.
Simple two-level navigator
This example shows the basic structure of the element design used by a navigator.
Navigator result design 1
A <b> tag is added to display the text in the first level of the navigator in bold.
<b> <placeholder tag="namelink" /> </b><br>Navigator result design 2
The second design will be repeated for every link returned by the parameters defined in the navigator element below the first level.
<placeholder tag="namelink" /> <br>
Navigator used in a rendering portlet
In this example, a URLCmpnt tag is used to create a link instead of a placeholder. This enables you to specify the name of the portal page use when viewing the links generated by the navigator:
Design field Design code Header <Table> Navigator result design 1 <tr><td> <b> <a HREF= "<URLCmpnt context="autofill" type="content" mode="portal" portalTarget="URLMap">" target="_blank"> <IDCmpnt context="autofill" field="title"> </a></b> </td></tr> Navigator result design 2 <tr><td> <a HREF= "<URLCmpnt context="autofill" type="content" mode="portal" portalTarget="URLMap">" target="_blank"> <IDCmpnt context="autofill" field="title"> </a></td></tr> Footer </Table> Navigator Keyed to Site Area
Identification Name: nav featured articles homepage Display title: Nav Featured Articles Homepage Description: Nav Featured Articles Homepage Type: Navigator Library: Vault WCM Design Library Authors: CN=wpsadmin,CN=Users,DC=int,DC=vault,DC=com Owners: CN=wpsadmin,CN=Users,DC=int,DC=vault,DC=com Navigator Element Start Type: Selected Selected Start Area: /Vault_Content_Library/Articles Site/Articles Include Start: false Ancestor Level: None Descendant Level: All Preceding Siblings Level: None Next Siblings Level: None Show Site: false Show Content: false Expand current navigator branch one level: true Expand navigator to display current site area: true Results per page: 30 Start page: 1 Maximum pages to include: 10 Pages to read ahead: 10 Distinguish items with no children using the final navigator result design: false Header: Export Footer: Export Separator: Export <br> Navigator result design 1 Export <Placeholder tag="Titlelink"/> <br><br> <IDCmpnt context="autoFill" type="sitearea" field="description"/><br> No result design: Export Access Administrator Defined User Defined Inheritance User None None [anonymous portal user], [all authenticated portal users] Contributor None None None Editor None None [anonymous portal user], [all authenticated portal users] Manager None CN=wpsadmin,CN=Users,DC=int,DC=vault,DC=com InheritanceNone
Parent topic:
Navigator elements