synyx GmbH & Co. KG Homepage Welcome Guest   | Login
  Search  
  Index  | Recent Threads  | Who's Online  | User List  | Register  | Search  | Help  | RSS feeds


Quick Go »
Thread Status: Normal
Total posts in this thread: 1
[Add To My Favorites] [Watch this Thread]
Author
Previous Thread This topic has been viewed 1099 times and has 0 replies Next Thread
Female ks1905
Newbie



Joined: Jun 15, 2009
Posts: 20
Status: Offline

there seems to be a mistake in the TemplateTwo left navigation...

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.
[Jul 7, 2009 3:13:36 PM] Show Printable Version of Post     [Link] Report threatening or abusive post: please login first  Go to top 
[Show Printable Version of Thread]