The Navigation portlet

The Navigation portlet allows you to add dynamic portal navigation to a static page. When writing a static portal page you can configure the starting point of the navigation and the number of navigation levels by using the initialization parameters.


Unique name

You can address the Navigation Portlet by its unique name: wps.p.SpaNavigation .


Usage

You can embed the navigation portlet into a static page by using the semantic tag portlet-window described in the topic about class attributes for portlets on static pages. When rendering the page, the server replaces the semantic tag with the portlet microformat, and the portlet renders the navigation by using the navigation microformat. The portlet accepts the following configuration parameters that you can embed by coding a definition list ( <dl> ) in the static page:
root


levels


Example

The following example produces a single level navigation of the siblings of the current page:

<div class="portlet-window" name="main-navigation"
     style="portlet-definition:wps.p.SpaNavigation">
     <dl>
     <dt>root</dt>
     <dd>..</dd>
     <dt>levels</dt>
     <dd>1</dd>
     </dl>
</div>

The following example shows the quick link navigation:

<div class="portlet-window" name="quick-navigation"
     style="portlet-definition:wps.p.SpaNavigation">
     <dl>
     <dt>root</dt>
     <dd>ibm.portal.Quick Links</dd>
     </dl>
</div>


Parent

Portlets for adding dynamic elements to static pages
The Breadcrumb Trail portlet
The SPA Resource Addressability portlet
Class attributes for portlets on static pages

 


+

Search Tips   |   Advanced Search