Outputs an HTML link – anchor tag (<a>) with nested text or an image – for navigating to the current navigation node.
For more information about how to create navigation links, see Triggering Navigation.
Name |
Mandatory |
Description |
anchorAttributes |
No |
A string that is added inside the anchor tag, in which you can add additional HTML attributes for the anchor tag, such as onClick. |
EPCMHistoryMode |
No |
Indicates whether the navigation node is added to the portal’s history list on the page title bar and, if it is, whether duplicate entries are allowed if a user clicks on the link multiple times. The following are valid values: · 0: Added to history with duplicates · 1: Added to history without duplicates (default) · 2: No tracking This attribute is only relevant when the navigationMethod attribute is set to byEPCM. |
hashURL |
No |
Indicates whether to set the value of the anchor’s href attribute to the standard navigation URL or to its hashed URL. The following are valid values: · true (default) · false Any other value is equivalent to true. |
navigationContext |
No |
The navigation node to set as selected. With this attribute, you can launch one navigation node but set another navigation node to appear in navigation iViews as if it was selected. Specify a node by its name, which is the same as the value returned by INavigationNode.getName(), for example, ROLES://portal_content/myFolder/myRole/myIView. |
navigationMethod |
Yes |
Indicates whether to use client-side eventing for navigation after the user clicks the link. The following are valid values: · byEPCM: Use client-side eventing. · byURL: Do not use client-side eventing. This eliminates the need for EPCM Javascript, reducing network traffic. This option is useful when implementing an external-facing portal in low-bandwidth scenarios. This option prevents the navigation node from being added to the history list. For more information on an external-facing portal, see Implementing an External-Facing Portal. |
navigationMode |
No |
Indicates how to launch the node when the user clicks the link. The following are valid values: · 0: Node is launched in the same frame. · 1: Node is launched in new window. · 2: Node is launched in a new session of the portal, which is displayed in a new window. The values are defined by the constants defined in INavigationConstants and with the prefix SHOW. |
title |
No |
The visible text for the link. If not specified, the title of the navigation node is used, which is the same as the value returned by INavigationNode.getTitle(). |
urlParameters |
No |
A string that is appended to the URL in the anchor tag’s href attribute. This attribute enables you to add parameters to the link URL. |
The tag must be nested in one of the following tags:
● iterateInitialNavNodes
● iterateNavNodeChildren
● iterateNavNodesInSelectedPath
● iterateSelectedNavNodesLevel
● launchedNavNode
● navNode
● navNodeParent
● recallNavNode
● recurseNavNodeChildren
● selectedNavNode
The following creates a navigation link.
<nav:ifNavNodeSelected>
<TD nowrap class="chosenTDLevel1">
<nav:navNodeAnchor navigationMethod="byURL"
anchorAttributes="class='chosenOnLevel1'"/>
</TD>
<% if(levels==2) { %>
<nav:storeNavNode/>
<% } %>
</nav:ifNavNodeSelected>