couldn't you also use request.navid to get the parent.Or I guess that would only work for the base level....
On Thu, Oct 15, 2009 at 6:26 AM, Blair McKenzie <[email protected]> wrote: > I know it's possible, but not the details. It is possible to override the > function genericnav uses to get the tree it displays. Basically there are a > bunch of functions in oTree that can be used instead of the default. You > will probably have to look at the code of both to work it out, but you > should start by adding these attributes to the genericnav tag: > functionMethod="getBloodLine" functionArgs="levelsabove=1,levelsbelow=1" > > Blair > > > On Thu, Oct 15, 2009 at 7:35 PM, 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 -~----------~----~----~----~------~----~------~--~---
