Exposes the navigation node with the name specified in the name attribute.
The navNode tag does not function properly for merged nodes. For more information about merging nodes, see Merging Navigation Nodes and Defining the Sequence in the Portal Administration Guide.
Name |
Mandatory |
Description |
navTarget |
Yes |
Specifies the name of the navigation node to expose. The name is the same string as returned by the INavigationNode.getName() method. For example, specify ROLES://portal_content/myFolder/myRole to get the node that represents the role myRole in folder portal_content/myFolder. |
navNode |
No |
The name of the Java variable to create for holding the INavigationNode object for the specified node. The variable is accessible in scriptlets in the body of the tag. |
<navNode> attribute |
No |
INavigationNode object representing the specified node. |
The following creates a link for a set of navigation nodes, whose names are stored in a String array.
<% String[] targets = ... %>
...
<nav:navNode navTarget="<%=targets[6]%>">
<nav:navNodeAnchor method="byURL"/>
</nav:navNode>