> This is a long shot, but is there anyway a custom tag can 
> know about coldfusion built-in child tags?  For example:
> 
> <cf_mytag>
> <cfoutput query="qryBlog" startRow="10" maxRows="20">
> </cfouput>
> <cf_mytag>
> 
> Is there anyway my custom tag <cf_mytag> know that it has has 
> child tag called <cfoutput> and the child tag has an 
> attribute called startRow with a value of 10?

No, I don't think so. Custom tags can know about child custom tags, because
those tags can explicitly report data back to the custom tag, which can then
receive it with CFASSOCIATE. But everything else just ends up generating
content - your custom tag can read the generated content, of course, but
that occurs after the tags have run. When the code between the opening and
closing custom tags is running, the custom tag itself isn't running.

The only way I can think of by which you might be able to do this, is
through exception handling. Within an exception handler, you can reference
the tag stack and information about each tag within the stack. Within your
closing custom tag, you'd have to throw an exception, catch it, read the tag
stack, and continue processing. I have no idea whether this will actually
work, though.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized 
instruction at our training centers in Washington DC, Atlanta, 
Chicago, Baltimore, Northern Virginia, or on-site at your location. 
Visit http://training.figleaf.com/ for more information!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

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

Reply via email to