AdobeStock_455007340

Working With Multiple Child Tags

Home » Working With Multiple Child Tags

ColdFusion CustomTags can have associated tags, child tags used primarily to pass data to the parent tag. By default, the attributes saved by all child tags (no matter how many there are) are stored in the same array – ThisTag.AssocAttribs. If you are working with multiple child tags and need a way to identify the data from each tag individually, use the DATACOLLECTION attribute when using to provide an alternate array name (within the ThisTag structure). (Applies to: ColdFusion 4 (or later))

Leave a Reply