ColdFusion supports the creation and use of complex Custom Tags involving the use of base tags (or parent tags) and child tags (tags nested within base tags). Obviously, in this type of Custom Tag it is important that tags be called in the correct sequence (and that child tags not be called outside of their parent tags). To check that a child tag is being called correctly, use the GetBaseTagList() function within it – this function returns a comma delimited list of the tags the current tag is enclosed within allowing you to use standard list processing functions to check that the correct parent tag is present. (Applies to: ColdFusion 4 (or later))

Leave a Reply