|
|
Index
| Recent Threads
| Who's Online
| User List
| Register
| Search
| Help
| |
![]() |
OpenCms Forum » List all forums » Forum: Questions about Template Development » Thread: there seems to be a mistake in the TemplateTwo left navigation... |
|
Thread Status: Normal Total posts in this thread: 1 |
[Add To My Favorites] [Watch this Thread] |
| Author |
|
|
Newbie
|
Hi, the following is an extract of the nav_left.jsp that belongs to the templatetwo module, which builds the left menu. <div id="nav_left"> <ul> <c:set var="oldLevel" value="" /> <c:forEach items="${cmstm.elements}" var="elem"> <c:set var="currentLevel" value="${elem.navTreeLevel}" /> <c:choose> <c:when test="${empty oldLevel}"></c:when> <c:when test="${currentLevel > oldLevel}"><ul></c:when> <c:when test="${currentLevel == oldLevel}"></li></c:when> <c:when test="${oldLevel > currentLevel}"> <c:forEach begin="${currentLevel+1}" end="${oldLevel}"></li></ul></c:forEach> </c:when> </c:choose> <li><a href="<cms:link>${elem.resourceName}</cms:link>" <c:if test="${cmstm.isCurrent[elem]}">class="current"</c:if>>${elem.navText}</a> <c:set var="oldLevel" value="${currentLevel}" /> </c:forEach> <c:forEach begin="${cmstm.topLevel+1}" end="${oldLevel}"> </li> </ul> </c:forEach> </ul> </div> Ok. So, the number of opening and closing li and ul tags within the div is not equal to each other! I noticed the same for the sitemap.jsp which is in the org.opencms.workplace.help module. This is causing some problems in my pages. Can somebody post some corrected code for that, maybe even somebody from the opencms programmers, please? Thanks. |
||
|
| [Show Printable Version of Thread] |