Thanks Tim. Yeah, that's what I am doing at the moment. I figure I'll do it ugly and inefficient and seperate out the processing from the main templates, then shift the tags to functions to improve efficiency.
Chad who is hosting the first Bendigo CF User Group lunch-time Rave, starting in 10 minutes On 5/12/05, Tim McAuliffe <[EMAIL PROTECTED]> wrote: > 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/ > --- 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/
