Not to forget the problem with the symbolic link property is that it has no teaser. This means its tough to use in say a child links rule or euivalent.

Are we recommending the use of dmLink to manage internal "symbolic" style links that require teasers?? Or are we attempting to pick up the destintion nav nodes underlying child?

-- geoff
http://www.daemon.com.au/

Brendan Sisson wrote:
What I had hoped to do is to set up a navigation tree in Utility but have the items of that tree point to existing content objects (either using the direct object ID or a nav alias). Then all I intended to do was write a piece of code that grabbed that branch of the tree and displayed it appropriately. I am doing this for my page "footer" - but, of course, the pages associated with those nav items are the actual pages (think Disclaimer, Privacy, etc.).

I think what you are trying to do here can be achieved with Symbolic links (formally known as external links). In the advanced options for a navigation node there is a field called symbolic link, which allows you to add an objectid of another navigation node in your tree. If you are wanting to link to a page outside of your farcry site, use the new dmLink type. Once you have set up your symbolic link, your footer code might look something like this:



<cfscript> // get navigation elements in footer o = createObject("component", "#application.packagepath#.farcry.tree"); qAncestors = o.getAncestors(ObjectID=application.navid.footer); </cfscript>

<cfloop query="qAncestors">
<!--- check for sim link --->
<cfif externalLink neq "">
<!--- is sim link --->
<cfset href="#application.url.conjurer#?objectid=#externalLink#">
<cfelse>
<!--- standard link --->
<cfset href="#application.url.conjurer#?objectid=#objectid#">
</cfif>
<!--- output link ---> <cfoutput><a href="#href#">#qAncestors.objectname#</a></cfoutput>
</cfloop>


Hope this helps :)

-Brendan
http://farcry.daemon.com.au






---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to