AdobeStock_455007340

CALLER Scope and Nested Custom Tags

Home » CALLER Scope and Nested Custom Tags

ColdFusion Custom Tags may be nested – that is, Custom Tags may call Custom Tags that may call Custom tags that may call … you get the picture. When nesting Custom Tags remember that the CALLER scope always refers to a Custom Tag’s caller, not the top level page. If you need to pass data up through multiple levels you can either return it one level at a time (each Custom Tag sets it’s CALLER), or use multiple CALLER scopes (one per level), for example CALLER.CALLER.CALLER.var. (Applies to: ColdFusion 4 (or later))

Leave a Reply