[opencms-dev] from Folder to NavInfo
Joe Desbonnet
jdesbonnet at gmail.com
Tue Apr 11 22:25:38 CEST 2006
Take a look at the getNavigation() method of CmsJspActionElement. That returns a
CmsJspNavBuilder which can be used for building site navigation.
Joe.
On 4/11/06, Christoph P. Kukulies <kuku at physik.rwth-aachen.de> wrote:
> I always have the problem of switching between the idea of a CmsObject
> to a CmsJspNavElement or a folder or file. Consider the following piece
> of code:
>
> cmso is a CmsObject passed to the function that builds a menu tree.
>
> ArrayList folders = (ArrayList) cmso.getSubFolders(path);
> Iterator j = folders.iterator();
> while (j.hasNext()) {
> CmsFolder f = (CmsFolder)j.next();
> ...
> }
>
> When I get the array of folders these may or may not have navigation set.
> How can "ask" each element (j.next()) whether it has a NavText for example?
>
>
> --
> Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
>
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
More information about the opencms-dev
mailing list