John Beynon wrote:
I'm trying to build a left hand menu for a site I'm working on, I want
it to display the child pages depending what level you're at. In the
tree below, if you were on page3 you'd see page5 beneath it but only
if you're on page3, page5 might also have children too but they should
be visible when youre in page5.

how can i accomplish this?

Use the getDescendants() method. Set bIncludeSelf to true and depth to "1". This will return a query with both the page you're currently on and it's children navigation nodes.

example:

<cfscript>
  // get navigation elements
  navFilter=arrayNew(1);
  navfilter[1]="status IN (#listQualify(request.mode.lvalidstatus, "'")#)";
qNav = application.factory.oTree.getDescendants(objectid=request.navid, depth=1, afilter=navFilter, bIncludeSelf=1, lColumns='lNavIDAlias');
</cfscript>

<cfdump var="#qNav#" />

---
You are currently subscribed to farcry-dev as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to