Show TOC

Background documentationnavZoomAnchor Locate this document in the navigation structure

 

Outputs an HTML link (the anchor <a> tag with a nested text or an image) for displaying the portal navigation with the children of the selected node as the top-level nodes.

Attributes

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.

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, de_DE, zh_CN.

If not specified, the request locale is used.

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().

Cooperating Tags

The tag must be nested in one of the following tags:

  • contextNavNode

  • iterateInitialNavNodes

  • iterateNavNodeChildren

  • iterateNavNodesInSelectedPath

  • iterateSelectedNavNodesLevel

  • launchedNavNode

  • navNode

  • navNodeParent

  • recallNavNode

  • recurseNavNodeChildren

  • selectedNavNode

Example

The following creates a navigation zoom point. When clicked, it becomes the root node, and all of the navigation nodes below the navigation zoom point are arranged in top-level navigation and detailed navigation. For more information, see Configuring Navigation Zoom.

Syntax Syntax

  1. <ul>
    <nav:recurseNavNodeChildren>
    <li>
        <nav:ifNotNavNodeIsNavZoom>
            <nav:ifNavNodeInSelectedPath>
                <strong>
                    <nav:navNodeAnchor navigationMethod="byURL"/>
                </strong>
            </nav:ifNavNodeInSelectedPath>
            <nav:ifNotNavNodeInSelectedPath>
                <nav:navNodeAnchor navigationMethod="byURL"/>
                <nav:doNotRecurseNavNodeChildren/>
            </nav:ifNotNavNodeInSelectedPath>
        </nav:ifNotNavNodeIsNavZoom>
    
        <nav:ifNavNodeIsNavZoom>
            <nav:navZoomAnchor/>
            <nav:doNotRecurseNavNodeChildren/>
        </nav:ifNavNodeIsNavZoom>
    
        <nav:ifNextRecursionDepthWillNotChange>
            </li>
        </nav:ifNextRecursionDepthWillNotChange>
    
        <nav:ifNextRecursionDepthWillIncrease>
            <ul>
        </nav:ifNextRecursionDepthWillIncrease>
    
        <nav:ifNextRecursionDepthWillDecrease>
            </li>
            <nav:decreaseRecursionDepthLoop>
                </ul></li>
            </nav:decreaseRecursionDepthLoop>
        </nav:ifNextRecursionDepthWillDecrease>
    </nav:recurseNavNodeChildren>
    </ul>
    
End of the code.