Hey. I'm not sure I totally understand your question, but this is what I
have in one of our navigation files:

 

 
<cfloop query="qNav">

 
<li><a
href="#application.url.conjurer#?objectid=#qNav.ObjectID#">#qNav.objectN
ame#</a>

 
<cfset qNav2 =
application.factory.oTree.getDescendants(objectID=#qNav.objectID#,
depth="1", afilter=navFilter, lColumns='lNavIDAlias')>

 
<cfif qNav2.recordcount gt 0>

 
<ul>

 
<cfloop query="qNav2">

 
<li ><a href="#application.url.conjurer#?objectid=#qNav2.ObjectID#"
>#qNav2.objectName#</a></li>

 
<cfset qNav3 =
application.factory.oTree.getDescendants(objectID=#qNav2.objectID#,
depth="1")>

 
<cfif qNav3.recordcount gt 0>

 
<ul>

 
<cfloop query="qNav3">

 
<li><a  href="#application.url.conjurer#?objectid=#qNav3.ObjectID#"
>#qNav3.objectName#</a></li>

 
</cfloop>

 
</ul>

 
</cfif>

 
</cfloop>

 
</ul>

 
</cfif>

 
</li>

 
</cfloop>

 

Hope that helps.

 

B.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED]
On Behalf Of Andrew Scott
Sent: Tuesday, 3 July 2007 12:54 PM
To: [email protected]
Subject: [farcry-dev] Rather simple but stupid problem

 

I have a navigation include template, this template is / uses the
standard

 

o = createObject("component", "#application.packagepath#.farcry.tree");

navFilter=arrayNew(1);

navfilter[1]="status IN (#listQualify(request.mode.lvalidstatus,
"'")#)"; //'

qNav =
evaluate("o."&attributes.functionMethod&"(objectid=attributes.navID,
lColumns='externallink', "&attributes.functionArgs&",
afilter=navFilter)");

 

Now I also have 2 dmNavigation objects that are both draft, now the
problem that I am getting which I want to remove / fix is that one has
children that all dmNavigations are status of draft, where as the other
only the main is draft. And what I am hoping to achieve is that with the
parent navigation is set to draft that it will not read all children.

 

Is that possible, and how would I do that? I figure that the navFilter
is the way to go, but after looking at the code I do not see any way to
do this from the data and not familiar with the tables I am not sure if
I have to extend this call in some way.

 

Please remember that I can't modify core files, so extending is my only
option.

 



Andrew Scott
Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613  8676 4223
Mobile: 0404 998 273

 

 




No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.9.14/884 - Release Date:
2/07/2007 3:35 PM




CAUTION - This message may contain privileged and confidential information 
intended only for the use of the addressee named above. If you are not the 
intended recipient of this message you are hereby notified that any use, 
dissemination, distribution or reproduction of this message is prohibited. If 
you have received this message in error please notify Power Business Systems 
immediately. Any views expressed in this message are those of the individual 
sender and may not necessarily reflect the views of Power Business Systems.



--~--~---------~--~----~------------~-------~--~----~
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