Show TOC

navZoomBackTargetAnchorLocate this document in the navigation structure

Use

Outputs an HTML link (the anchor <a> tag with a nested text or an image) for returning back from a navigation zoom to an upper level.

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 .

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:

  • ifNavZoomIsActive

Example

The following displays the Main Portal title, if the user has not yet zoomed into some navigation zoom point. Otherwise the navigation zoom title is displayed together with the Back to Main Portal link.

<nav:ifNotNavZoomIsActive>
    <h1>Main Portal</h1>
</nav:ifNotNavZoomIsActive>
<nav:ifNavZoomIsActive>
    <h1><nav:navZoomTitle/></h1>
    <nav:navZoomBackTargetAnchor 
     anchorAttributes="class=\"backLink\"">
        Back to Main Portal
    </nav:navZoomBackTargetAnchor>
</nav:ifNavZoomIsActive>