Robin, Firstly the tag falls over on this line, which is practically the one of the first lines.
<cfassociate basetag="cf_Tag1_1"> If I remove this tag and dump the getBaseTagList(), I find that the tag cf_tag1_1 is not even listed in the list at all. But I find things like cfoutput, cfdump etc... It really is driving me crazy on this. Regards Andrew Scott Technical Consultant NuSphere Pty Ltd Level 2/33 Bank Street South Melbourne, Victoria, 3205 Phone: 03 9686 0485 - Fax: 03 9699 7976 -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robin Hilliard Sent: Tuesday, 4 January 2005 1:56 PM To: CFAussie Mailing List Subject: [cfaussie] RE: Nested Custom Tags Andrew Scott wrote: > Hi All, > > Question regarding nesting of Custom Tags, I have successfully nested > two tags and tried to go a third level deep without success. > > <cf_Tag1> > <cf_Tag1_1> > <cf_Tag1_1_2> > <cf_Tag1> > > Now the idea is that if I was to use cf_Tag1_1_1 without specifying > cf_Tag1_1 it would throw an error, but it seems that the bastag > information is all screwed up. Andrew, If that's all you need, why not just use listFirst(getBaseTagList()). I've used getBaseTagData() a lot without problems, things to check (I trip myself up on these reasonably often): - Are you checking thisTag.executionMode i.e. you're sure whether code is running in opening or closing tag. - From memory, tag code isn't called with executionMode eq "end" if you don't add a <trailingSlash/> to single tags. You can use thisTag.hasEndTag to check for this. - You haven't confused the "caller" scope with the parent tag's scopes. - I always use the "thisTag" scope for variables local to a particular tag, i.e: x = getBaseTagData(); x.thisTag.message = "Donate to Tsunami Appeal Now!"; - Remember to set thisTag.generatedContent = "" if you don't want the content output after the closing tag. Cheers and Happy New Year, Robin http://www.rocketboots.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/ --- 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/
