IsCustomTag()
Last updated January 29, 2002
Version: 1 | Requires: CF5 | Library: UtilityLib
Description:
Simply returns a boolean value if the tag calling this function was itself called as a custom tag or not. Very important for creating dual-pupose templates which can be cfinclude'd or cfmodule'd.
Return Values:
Returns a Boolean value.
Example:
<cfoutput>
Is this template being called as a custom tag: #IsCustomTag()#
</cfoutput>
Parameters:
No arguments.
Full UDF Source:
/**
* Returns true/false if the current template is being called as a custom tag.
*
* @return Returns a Boolean value.
* @author Jordan Clark (JordanClark@Telus.net)
* @version 1, January 29, 2002
*/
function IsCustomTag() {
return yesNoFormat( listFindNoCase( getBaseTagList(), "CF_" & listFirst( listLast( getCurrentTemplatePath(), "/\" ), "." ) ) );
}
Search CFLib.org
Latest Additions
Raymond Camden added
QueryDeleteRows
November 04, 2017
Leigh added
nullPad
May 11, 2016
Raymond Camden added
stripHTML
May 10, 2016
Kevin Cotton added
date2ExcelDate
May 05, 2016
Raymond Camden added
CapFirst
April 25, 2016