[opencms-dev] Problem with getNavigationTreeForFolder
Soeren Wollesen
SW at Solve-IT.de
Sat Jan 31 01:29:01 CET 2004
I'm trying to get the NavigationTree for my project. The javadoc for getNavigationTreeForFolder read kind of easy, but it doesn't work? It only shows me the level 0 and the level 1, but no deeper level although my project has a depth of 4 navigation levels.
This is the trial code for debugging purpose:
Can anybody help?
<%@ page session="false" import="com.opencms.flex.jsp.*" %>
<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>
<%com.opencms.flex.jsp.CmsJspActionElement cms = new CmsJspActionElement(pageContext, request, response);%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head></head>
<body>
<%
java.util.ArrayList list = cms.getNavigation().getNavigationTreeForFolder(0,99);
out.println (list.size());
java.util.Iterator i = list.iterator();
while (i.hasNext()) {
CmsJspNavElement ne = (CmsJspNavElement)i.next();
out.println( ne.getNavText() + " " + ne.getNavTreeLevel() + "<br>" );
}
%>
</body>
</html>
More information about the opencms-dev
mailing list