其他分享
首页 > 其他分享> > OpenCms 导航

OpenCms 导航

作者:互联网

示例:

<%@page taglibs="c,cms" %> 
<c:set var="navStartLevel">1</c:set>
<cms:navigation type="treeForFolder" startLevel="${navStartLevel}" endLevel="4" var="nav"/>
<ul class="nav-side list-group sidebar-nav-v1">		
	<c:forEach items="${nav.items}" var="elem">
		<li class='nav-side-level-${elem.navTreeLevel - navStartLevel} 
		           list-group-item 
		           ${!elem.navigationLevel && nav.isActive[elem.resourceName]?"active":""}'>
			<a href="<cms:link>${elem.resourceName}</cms:link>">${elem.navText}</a>
		</li>
	</c:forEach>
</ul>

标签:示例,elem,OpenCms,resourceName,导航,navText
来源: https://www.cnblogs.com/freepc/p/16190580.html