James,
Try
<cfset qSectionNode = createObject("component",
"#application.packagepath#.farcry.tree").getAncestors
(objectID=request.navid,nlevel="2")>
This will return the ancestor directly below the home node for any
navid.
Chris.
On Oct 15, 9:35 am, James Buckingham <[email protected]> wrote:
> Hi Group,
>
> I've been asked by Editors if it's possible to add a section's parent
> into the secondary menu of our site.
>
> So say we're in the "About" section, currently we have "About" in the
> top navigation and then all it's children in a menu on the LHS. What
> they want is "About" to also be added to the LHS menu, sitting at the
> top.
>
> I've done a bit of looking into it and can't see a way I can do this
> without them adding a new page in the Site tree and putting a redirect
> on it. Ideally I'd like to automate this within the template if I can.
>
> I've tried looking at the oTree.getAncestors method but a) I don't
> know how I get the objectID of the parent from the current section and
> b) It seems to return everything sitting in the same level as
> "About" (i.e. Home page, news, contact etc.)
>
> Has anyone got any pointers?
>
> Cheers,
> James
--~--~---------~--~----~------------~-------~--~----~
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
-~----------~----~----~----~------~----~------~--~---