Show TOC

ifNavNodeIsFolderLocate this document in the navigation structure

Use

Includes its body if the current node is a folder.

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 displays a folder icon if the current node is a folder with child nodes.

            <nav:ifNavNodeIsFolder>
    <nav:ifNavNodeHasChildren>
        <img src="<%=imagesUrl%>/folder.png" />
    </nav:ifNavNodeHasChildren>
    <nav:ifNotNavNodeHasChildren>
        <img src="<%=imagesUrl%>/page.png" />
    </nav:ifNotNavNodeHasChildren>
</nav:ifNavNodeIsFolder>
<nav:ifNotNavNodeIsFolder>
    <img src="<%=imagesUrl%>/page.png" />
</nav:ifNotNavNodeIsFolder>

         
More Information