CFASSOCIATE

The CFASSOCIATE tag allows sub-tag data to be saved with the base tag. This applies to custom tags only.

Syntax

<CFASSOCIATE BASETAG="base_tag_name"
    DATACOLLECTION="collection_name">
BASETAG

Required. Specifies the name of the base tag.

DATACOLLECTION

Optional. Specifies the name of the structure in which the base tag stores sub-tag data. The default is AssocAttribs.

Usage

Call this tag within a sub-tag to save sub-tag data in the base tag.

ColdFusion saves sub-tag attributes in a structure whose default name is AssocAttribs. Use the DataCollection attribute to specify a non-default structure name. Specify a non-default structure name when the base tag can have multiple sub tags and you want to segregate sub-tag attributes.

Get Sams Teach Yourself ColdFusion® in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.