Show TOC

ifIsFirstIterationLocate this document in the navigation structure

Use

Includes its body if the current node is the first node in the current iteration. For example, when displaying a list of first-level nodes in a top-level navigation iView, use this tag if you need to display the first node differently from all other nodes.

Cooperating Tags

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

  • iterateInitialNavNodes

  • iterateNavNodeChildren

  • iterateNavNodesInSelectedPath

  • iterateRelatedNavNodes

  • iterateSelectedNavNodesLevel

  • recurseNavNodeChildren

Example

The following displays different markup if it is the first iteration pass.

            <ul id="tln">
    <nav:iterateInitialNavNodes>
        <nav:ifIsFirstIteration>
            <li class="first">
        </nav:ifIsFirstIteration>
        <nav:ifNotIsFirstIteration>
            <li>
        </nav:ifNotIsFirstIteration>
        <nav:navNodeAnchor navigationMethod="byURL"/>
        </li>
    </nav:iterateInitialNavNodes>
</ul>

         
More Information