Access Data From Ancestor Tags

Nested Custom tags allow you to create tag families – parent tags with associated child tags. Usually data is pushed from child tags up to parent tags for processing, but if you find that you need to access parent data from within child tags, use the GetBaseTagData() function within the child tag. By default it’ll return the data in the nearest associated tag, but you may also specify the instance number (how many levels to jump up). (Applies to: ColdFusion 4 or later)

Leave a Reply