[opencms-dev] dealing with changing NavTreeLevel
Nigel Kersten
nigel at cofa.unsw.edu.au
Wed Aug 31 03:06:56 CEST 2005
On 29/08/2005, at 8:16 AM, Nigel Kersten wrote:
> To make it clearer, I'm pretty sure I should be able to just
> interrogate directly "/sites/cofa" to find out what it's
> NavTreeLevel is, but I don't seem to be able to work out from the
> API what I use to do this.
>
> I thought I could just do something like:
>
> CmsJspNavElement cofaRoot = cms.getNavigation
> ().getNavigationForResource("/sites/cofa/index.html");
> int newRootNav = cofaRoot.getNavTreeLevel();
>
> but I'm obviously passing the wrong kind of parameter to
> getNavigationForResource or Folder or whichever one I try.
Does anyone have a tip on how I should be using
getNavigationForResource or Folder to get the NavTreeLevel of
something from it's path in the VFS?
--
Nigel Kersten [Senior Technical Officer]
College of Fine Arts, University of NSW, Australia.
CRICOS Provider Code: 00098G
More information about the opencms-dev
mailing list