Hi Chad,

I seem to recall reading somewhere that recursion with custom tags in CF5
is a bit inefficient, both speed and memory wise. I'd strongly recommend
using functions instead.

Having said that, for your "level" problem, you could pass the level as an
attribute and just read that.

eg. At the top of mytag.cfm write:
<cfparam name="attributes.level" default="0">
<cfset attributes.level = attributes.level + 1>

To recurse further:
<cf_mytag level="#attributes.level#">

To read the current level at any point it's then just:
#attributes.level#

HTH

Tim

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

Reply via email to