Outputs an HTML link (the anchor <a> tag with a nested text or an image) for navigating to the current navigation node, which is a related node of another node exposed by an iterator tag or a node tag.
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 class. |
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 valid values are:
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:
Any other value is equivalent to true. |
locale |
No |
Indicates the locale to use for retrieving and displaying the node's title. Valid values are the string representations of java.util.Locale objects, such as en, en_US, de_DE, zh_CN. If not specified, the request locale is used. |
navigationMethod |
Yes |
Indicates whether to use client-side eventing for navigation after the user clicks the link. The valid values are:
|
navigationMode |
No |
Indicates how to launch the node when the user clicks the link. The following are valid values:
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 the iterateRelatedNavNodes tag.
The following displays a list of related links, if the current context node has related nodes.
Syntax
<nav:contextNavNode> <nav:ifNavNodeHasRelatedNavNodes> <ul> <nav:iterateRelatedNavNodes> <li class="relatedLink"> <nav:relatedNavNodeAnchor navigationMethod="byURL"/> </li> </nav:iterateRelatedNavNodes> </ul> </nav:ifNavNodeHasRelatedNavNodes> </nav:contextNavNode>