Hey Jake,

That worked.  Plus I learned alot getting there.

Thanks!

Jaci


On May 29, 10:53 am, "Jake Churchill" <[EMAIL PROTECTED]> wrote:
> I did something similar on a project.  You can see it 
> athttp://cfas.cfwebtools.com
>
> Make your nav file accept another attribute (bIncludeParent) and use the
> logic at the top of the file to set it if it's not passed.  Here's what you
> put before the loop:
>
> if (attributes.bIncludeParent) {
>                 writeOutput("<a class=""parentLink""
> href=""#application.url.conjurer#?objectid=#application.factory.oTree.getNo-d
> e(application.factory.oTree.getParentID(attributes.navid).parentID[1]).obje-c
> tid#"">#application.factory.oTree.getNode(application.factory.oTree.getPare-n
> tID(attributes.navid).parentID[1]).objectName#</a>");
>
>         }
>
> The call you are particularly interested in is:
>
> This takes the object id of the parent and gets that particular nav node:
> application.factory.oTree.getNode(application.factory.oTree.getParentID(att-r
> ibutes.navid).parentID[1]).objectid
>
> This gets the objected of the parent:
> application.factory.oTree.getParentID(attributes.navid).parentID[1]
>
> So, you can see, get the objected of the parent, pass it to getNode and then
> you have .objectID and .objectName at your disposal for the link.
>
> Hope that helps!
>
> _____
>
> Jake Churchill
>
> CF Webtools
>
> 11204 Davenport, Ste. 200b
>
> Omaha, NE  68154
>
> http://www.cfwebtools.com
>
> 402-408-3733 x103
>
>
>
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] On
>
> Behalf Of Jaci
> Sent: Tuesday, May 29, 2007 9:46 AM
> To: farcry-dev
> Subject: [farcry-dev] can not get parent
>
> I have searched through the posts and have found a lot of postings
> about using getdescendants and getancestors and getparent but can't
> seem to get any of them to work.  I'm wondering what I'm doing wrong
> or if perhaps there is something wrong with my install.  So
> frustrating.
>
> Here's what I want.  I have a template that has a call to include file
> for the navigation based on the page.
> I'm using the genericNav:
>
> <skin:genericNav navID="#request.navid#"
>                         id="nav"
>                         depth="2"
>                         bActive="true"
>                         bIncludeHome="false">
>
> Which works fine..gets me the next two levels down.
>
> However the part of struggling with is that above the nav I want to
> display the parent nav title that these links belong to.  So for
> instance if my site tree looks like this:
>
> ACADEMICS
>    - Academic Divisions
>       - Arts & Humanities
>       - Business Technologies
>       - Mathematics
>
> When I click on Academic Divisions I want my two levels of sub
> navigation to show at the left under the header Academic Divisions.
>
> I've passed the pages stobj.objectid to the included file as an
> attribute but when I try to pass it to the getparent function it says:
> The argument OBJECTID passed to function getAncestors() is not of type
> UUID.
>
> I feel like I've been working on this for ages and I'm not making much
> progress...I defer to the brains of group to help.
>
> Jaci- Hide quoted text -
>
> - Show quoted text -


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to