Show TOC Start of Content Area

Background documentation Types of Tags  Locate the document in its SAP Library structure

The navigation tag library contains the following types of tags:

      Iterator: Iterates through a set of nodes, exposing in its body a different navigation node during each iteration.

      Node: Exposes in its body a specific navigation node.

      Operator: Performs an operation, such as storing a navigation node for later recall.

      Rendering: Outputs HTML based on the currently exposed navigation node.

      Conditional: Includes its body if a condition is true or false.

Iterator Tags

These tags enable you to iterate through a set of nodes, for example the top-level navigation nodes or the children of a node.

In the body of each tag, a different navigation node is exposed during each iteration. You can include cooperating tags – for example, navNodeAnchor for building a link from the current node – that work with the current node in the iteration.

The navigation tag library includes the following iterator tags:

      iterateInitialNavNodes

      iterateNavNodeChildren

      iterateNavNodesInSelectedPath

      iterateSelectedNavNodesLevel

      recurseNavNodeChildren

Node Tags

These tags enable you to select a specific navigation node, such as the currently selected node or the parent of the current node.

In the body of each tag, the specific navigation node is exposed.

The navigation tag library includes the following node tags:

      launchedNavNode

      navNode

      navNodeParent

      selectedNavNode

Operator Tags

These tags perform an operation, such as storing a node. Generally, these are closed tags.

The navigation tag library includes the following operator tags:

      storeNavNode

      recallNavNode

      doNotRecurseNavNodeChildren

Rendering Tags

These tags output HTML to be displayed in the iView.

The navigation tag library includes the following rendering tags:

      navNodeAnchor

      navNodeDescription

      navNodePictogram

      navNodeTitle

Conditional Tags

These tags enable you to include HTML or perform some action based on the currently exposed navigation node or the current user. A tag’s body is included if the condition for that tag is true.

For example, you can check whether the current node is an iView node and, if it is, include an iView icon in the detailed navigation tree, as shown in the following:

<nav:selectedNavNode>

    <nav:ifNavNodeIsIView>

        ... include an icon ...

    </nav:ifNavNodeIsIView>

</nav:selectedNavNode>

The navigation tag library includes the following conditional tags:

      ifAnonymousUser

      ifHasMoreIterations

      ifNavNodeEqualsLaunchedNavNode

      ifNavNodeEqualsSelectedNavNode

      ifNavNodeHasChildren

      ifNavNodeInSelectedPath

      ifNavNodeIsFolder

      ifNavNodeIsIView

      ifNavNodeIsNavZoom

      ifNavNodeIsPage

      ifNavNodeVisualizationType

      ifNextRecursionDepthWillDecrease

      ifNextRecursionDepthWillIncrease

      ifNextRecursionDepthWillNotChange

For most of the tags above, the tag library includes a second tag for checking whether the condition is false. For more information on these tags, see ifNot ….

 

End of Content Area