Hi,
Currently I render my menu like this:
[code]<cms:setNode var="root" path="/"/>
<c:forEach items="${root.children}" var="child">
<c:if test="${not empty child.title}">
<li><a
href="${pageContext.request.contextPath}${child.handle}.html">${child.title}</a></li>
</c:if>
</c:forEach>[/code]
This works ok.
However. When I only want to render some items when having a node
"positionAtRight", then the JSP fails saying that property "positionAtRight"
does not exist. Which is perfectly valid IMO because I have a check for this.
[b][i]I begin to doubt the above solution to render a menu out of the root
(website) nodes. Anyone has tips?[/i][/b]
Here is the snippet when trying to render only items with property
positionAtRight:
[code]<cms:setNode var="root" path="/"/>
<c:forEach items="${root.children}" var="child">
<c:if test="${not empty child.title and not empty child.positionAtRight
and child.positionAtRight}">
<li><a
href="${pageContext.request.contextPath}${child.handle}.html">${child.title}</a></li>
</c:if>
</c:forEach>[/code]
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=fdcea7e3-2ff3-4083-b338-744e19f8590b
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------