Jeff,

Thanks, I really appreciate your helping. however, at this high a
level, request.navid isnt defined yet, so how would I go about passing
my curernt navid to get ancestors to get my parent?
If I want to get my parent nav id's alias, and I put something like
the below in _serverSpecificRequestScope.cfm navid is not defined in
request scope. I'm still quite newbie and I am not sure where
everything gets set and when.

<cfset lHomeAliases = "home,jp_home">
<cfset qAncestors = application.factory.oTree.getAncestors
(objectid=request.navid)>
<cfset listAncestors = QuotedValueList(qAncestors.objectid)>
<cfset listAncestors = ListAppend(listAncestors,"'#request.navid#'")>

   <cfloop list="#lHomeAliases #" index="i">

      <cfset thisaliasid = application.navid[i]>

      <cfif ListFind(listAncestors, "'#thisaliasid#'")>
         <cfset request.parentAlias = i>
      </cfif>

   </cfloop>

On May 7, 12:11 pm, Jeff Coughlin <[email protected]> wrote:
> > rather than invoking this in the header webskin, where would be a good
> > place to get/set this value so its available before any webskins are
> > called?
>
> Chris,
>
> Since you need it on each page request, I would advise setting the  
> variable to the request scope and save it in projects/myProject/config/
> _serverSpecificRequestScope.cfm.  That's how I've always done things  
> like this.
>
> --
> Jeff Coughlin
> Web Application Developerhttp://jeffcoughlin.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to