Show TOC

Background documentationcontextNavNode Locate this document in the navigation structure

 

Exposes a navigation node launched by the most recent navigation or the one to which theNavigationContext parameter points.

The node is in most cases the same as the one exposed by the selectedNavNode and/or launchedNavNode tags, but may be different.

For example, in the absence of NavigationContext, when the user selects a folder node, the portal launches in the content area the first child node in the folder. The folder node is exposed by the selectedNavNode tag, the launched iView, or page node is exposed by the launchedNavNode tag, and the navigation links in the navigation iViews are highlighted according to the launched node.

When the NavigationContext parameter is specified, the launched node is displayed in the content area, and the navigation links in the navigation iViews are highlighted according to the context node.

Attributes

Name

Mandatory

Description

navNode

No

The name of a Java variable that holds the INavigationNode object for the node. The variable is accessible in scriptlets in the body of the tag.

Variables

Name

Scope

Description

navNode attribute

Tag body

An INavigationNode object representing the launched node

Example

The following displays the title of the current context node:

Syntax Syntax

  1. <nav:contextNavNode navNode="myNode">
       You are in: <%=myNode.getTitle(componentRequest.getLocale())%>
    </nav:contextNavNode>
    
End of the code.