[opencms-dev] Re: from Folder to NavInfo

Thomas März thomas.maerz at gmail.com
Tue Apr 11 21:55:42 CEST 2006


"Christoph P. Kukulies" <kuku at physik.rwth-aachen.de> writes:

>      while (j.hasNext()) {
>         CmsFolder f = (CmsFolder)j.next();

          CmsResource r = (CmsResource) r;
          CmsProperty p = cmso.readPropertyObject(r, CmsPropertyDefinition.PROPERTY_NAVPOS, false);
          if(p.isNullProperty()) {
              // navigation not set
          }

>      }
>
> 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?


HTH.

Regards,
Thomas




More information about the opencms-dev mailing list