Hi I'm using the CFTREE tag on cfmx7. I've set the format type to "object". This gives me a structure called "navtree". I need to loop through it to use the information in either Breadcrumb nav or DHTML menu nav. BUT not sure how to do it. Here's what i've got so far, but it isn't recursive and only goes down two levels, also what happens when I need to recurse up the tree.....OR am I missing something really simple here.
Thanks Steve <cfset al=#ArrayLen(navtree.children)#> <cfloop from="1" to="#al#" index="x"> <strong><cfoutput>#navtree.children["#x#"].display#</cfoutput></strong><br> <cfset al2=#ArrayLen(navtree.children["#x#"].children)#><br> <cfloop from="1" to="#al2#" index="y"> ----<cfdump var="#navtree.children["#x#"].children["#y#"].display#"><br> </cfloop> <p> </cfloop> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222168 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54