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/
