GetBaseTagData

Used within a custom tag.

Finds calling (ancestor) tag by name and accesses its data.

Method Signature

GetBaseTagData(tagName=[string], ancestorLevels=[integer])

Arguments

Argument
Type
Required
Description
Default

tagName

string

true

ancestorLevels

integer

true

1

Examples

Retrieve parent tag thisTag scope

Use getBaseTagData() to retrieve the execution mode of the parent CF_MAPPER custom tag.

<bx:set tagData = getBaseTagData( "CF_MAPPER" ) >
<!--- Find the tag's execution mode Located inside the --->
<bx:if tagData.THISTAG.EXECUTIONMODE != "inactive" >
template
<bx:else>
BODY
</bx:if>

Retrieve parent tag attributes

Use getBaseTagData() to retrieve the attributes of the parent cf_iframe tag

variables.PARENTATTRIBUTES = getBaseTagData( "cf_iframe" ).ATTRIBUTES;

Last updated

Was this helpful?