Show TOC

Background documentationifNavNodeIsFolder Locate this document in the navigation structure

 

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.

Syntax Syntax

  1. <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>
    
End of the code.

More Information