CFLib.org – Common Function Library Project

GetBaseCustomTagList()

Last updated February 20, 2003

author

Jordan Clark

Version: 1 | Requires: CF5 | Library: UtilityLib

Description:
The custom list returned is based on the ancestor tag list provided by the getBaseTagList() function. This is useful to check in one custom tag if it is a decendant of another.

Return Values:
Returns a list.

Example:

<cfif listFindNoCase( getBaseCustomTagList(), "CF_MY_PARENT" )>
   I have a parent!
<cfelse>
   I'm an orphan, wha!
</cfif>

Parameters:

No arguments.

Full UDF Source:

/**
 * Returns a list of ancestor custom tags.
 * 
 * @return Returns a list. 
 * @author Jordan Clark (JordanClark@Telus.net) 
 * @version 1, February 20, 2003 
 */
function getBaseCustomTagList() {
   var x = 1;
   var customTags = "";
   var baseTags = listToArray( getBaseTagList() );
   
   for( x = 1; x LTE arrayLen( baseTags ); x = x + 1 )
   {
      if( left( baseTags[ x ], 3 ) IS "CF_" )
      {
         customTags = listAppend( customTags, baseTags[ x ] );
      }
   }
   
   return customTags;
}

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

Created by Raymond Camden / Design by Justin Johnson