<![CDATA[Implementation details]]> You can use the new method "navigationLevel" of the CmsJspNavElement to recognize the "Navigation Level" element in the navigation. This can be usefull e.g. for styling.

Navigation example snippet with <cms:navigation> tag:

<cms:navigation type="treeForFolder" startLevel="1" endLevel="4" var="nav"/>
<c:forEach items="${nav.items}" var="elem">
    ...
   <a href="<cms:link>${elem.resourceName}</cms:link>" <c:if test="${nav.isActive[elem.resourceName] and !elem.navigationLevel }">class="current"</c:if>${elem.navText}</a>           
    ...
</c:forEach>
        

Please check following jsp for the complete navigation example:

/system/modules/org.opencms.dev.demo/elements/site-elements/side_nav.jsp


     

]]>