getCurrentTemplatePath
Description
Gets the path of the page that calls this function.
Categories
Related
Syntax
GetCurrentTemplatePath()
Returns
The
absolute path of the page that contains the call to this function,
as a string.
Usage
If the function call is made from a page included with a cfinclude tag, this function returns the page path of an included page. Contrast this with the GetBaseTemplatePath function, which returns the path of the top-level page, even if it is called from an included page.
Example
<!--- This example uses GetCurrentTemplatePath to show the
template path of the current page --->
<h3>GetCurrentTemplatePath Example</h3>
The template path of the current page is:
<cfoutput>#GetCurrentTemplatePath()#</cfoutput>