Similar to this, you can you the Site Tree (oTree) method to work out where you areDo a dump of qAncestors and look for the alias field - use that for naming the container; objectName will have spaces and therefore no good as a (ColdFusion) variable name.
<!--- Get Section name ---> <cfset qAncestors = application.factory.oTree.getAncestors(objectid=request.navid, bIncludeSelf="true", nLevel="2") /> <cfif qAncestors.RecordCount NEQ 0> <cfset REQUEST.section = qAncestors.OBJECTNAME[1] /> <cfelse> <cfset REQUEST.section = "Home" /> </cfif> On Wed, Sep 24, 2008 at 5:45 AM, Chris Roth <[EMAIL PROTECTED]> wrote: > > Chris. > > How do you deal with draft content, or when the FUs are not active > (draft, preview).. or do you not deal with it then? > > > -- AJ Mercer Web Log: http://webonix.net Once you come to the realisation that everyone is crazy, You will never be surprised or disappointed ever again. AJM 2008 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
