Returns a comma-delimited list of uppercase ancestor tag names. The first element of the list is the parent tag. If you call GetBaseTagList
for a top-level tag, it returns an empty string.
GetBaseTagList()
<!--- This example illustrates usage of the GetBaseTagList function. This is typically used in custom tags. ---> ... <cfif thisTag.executionMode is "start"> <!--- Get the tag context stack The list will look something like "CFIF,MYTAGNAME..." ---> <cfset ancestorList = GetBaseTagList()> <!--- Output current tag name ---> <cfoutput>This is custom tag #ListGetAt(ancestorList,2)#</cfoutput> <P> <!--- Determine whether this is nested inside a loop ---> <cfset inLoop = ListFindNoCase(ancestorList, "CFLoop")> <cfif inLoop neq 0> Running in the context of a CFLoop tag. </cfif> ...