Name

GetCurrentTemplatePath — New as of ColdFusion 4.01

Synopsis

GetCurrentTemplatePath(  )

Returns the full path to the ColdFusion template that calls the function. This function differs from GetBaseTemplatePath( ) in that it returns the path to an included template if called from a directory other than the parent template. Example:

<CFOUTPUT>The full path to the template is: #GetCurrentTemplatePath(  )#</CFOUTPUT>

Get Programming ColdFusion now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.