- Top: Displays links for the pages directly under Content Root, such as Home, Administration and Applications.
- Primary: Displays links, also thought of as tabs, for the child pages of the currently selected top page, such as Getting Started and Features for Home.
- Secondary: Displays links, also thought of as tabs, for the child pages of the currently selected primary page.
The three levels of navigation are controlled by three dynamic content spots in the theme.html
<a rel="dynamic-content" href="dyn-cs:id:7002theme_topNav"></a>
<a rel="dynamic-content" href="dyn-cs:id:7002theme_primaryNav"></a>
<a rel="dynamic-content" href="dyn-cs:id:7002theme_secondaryNav"></a>
The content spot ids map to custom property names in the WP DynamicContentSpotMappings
resource environment provider (REP) in the WebSphere Integrated Solutions Console.
Table 1. Content spot property names.
The value of each content spot mapping property indicates which jsp gets loaded in the spot. For these three spots, the same navigation.jsp
file is used with differing parameters passed to the jsp. The navigation.jsp
is found in the PortalServer_root\theme\wp.theme.modules\webapp\installedApps\ThemeModules.ear\ThemeModules.war\themes\html\dynamicSpots
folder. The available parameters are:
- startLevel: Specifies the starting level of page navigation to be displayed in this spot, using a zero-based index where 0 is the highest level.
- levelsDisplayed: Specifies the number of navigation levels to be displayed. If this parameter is not specified then the navigation from the startLevel to the children of the last page selected is displayed. For example, if the startLevel was set to 0 and levelsDisplayed as set to 3, then the navigation levels 0, 1, 2 would be displayed.
- rootClass : Specifies the style class name to apply to the block of tags that make up the page links: a <ul> with one <li> containing one <a> per page.
Rendering of the navigation is now done with a single jsp that outputs simple <ul> and <li> tags, which is greatly simplified and optimized compared to previous versions that used an iWidget and Dojo.
Parent topic: Navigation