• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Part IX:  Appendixes  >  Custom Tag Attributes

Custom Tag Attributes

A custom tag is defined in a single ColdFusion page. You cannot access a variable created in the calling page directly from the custom page, and vice versa. Custom tag attributes allow you to share information between the calling page and the custom tag page.

Passing Attribute Values to Custom Tags

You can pass data from a calling page to a custom tag page by specifying attributes in the form of name/value pairs in the custom tag. For example, you can specify an attribute in the custom tag <cf_product> by using the following code:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint