With just that narrow glimpse into what you're doing, I'd say you should be 
passing an "indent" down the tree, not a depth.

Yeah, I guess you could say that, but I think I like to pass the "indent" as in 
integer.  Then I can change the actually indention characters in the custom tag 
without having to rewrite any custom Tag invocation lines.

So what I came up with is along these lines.

<cfparam name="attributes.level" default="0">

And for the recursion.
<cf_Navigation menu="#attributes.menu.menu.a[i]#" level="#attributes.level + 
1#">

Seems to be working well.

--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

---------
| 1 |   |
---------  Binary Soduko
|   |   |
---------
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241526
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to