[opencms-dev] Get all folders

Alexander Kandzior alex at opencms.org
Wed Apr 6 19:38:54 CEST 2005


That one should do the job:

org.opencms.jsp.CmsJspNavBuilder

/**
 * This method builds a complete navigation tree with entries of all
branches 
 * from the specified folder.<p>
 * 
 * @see #getSiteNavigation(CmsObject, String, int)
 * 
 * @param folder folder the root folder of the navigation tree.
 * @param endLevel the end level of the navigation.
 * @return ArrayList of CmsJspNavElement, in depth first order.
 */
public List getSiteNavigation(String folder, int endLevel) 

Best Regards,
Alex.

Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com


 


________________________________

	From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Oliver Pereira
	Sent: Wednesday, April 06, 2005 6:11 PM
	To: The OpenCms mailing list
	Subject: [opencms-dev] Get all folders
	Importance: High
	
	

	Hi, 

	I am trying to get the navigation of a folder and it's subfolders,
Is there any method similar to getNavigationFolder which will get me the
navigation of all the subfolders under the parent folder, irrespective of
the no of subfolders.

	For e.g. 

	A       -> B 
	        -> C 

	The method should return B and C both 

	Regards, 

	Oliver 





More information about the opencms-dev mailing list