Returns the fully specified path of the template that contains the call to this function.
GetCurrentTemplatePath()
GetBaseTemplatePath,
FileExists,
ExpandPath
This function differs from GetBaseTemplatePath
in that it returns the template path of an included template, if the call is made from a template included with a cfinclude
tag; GetBaseTemplatePath
returns the template path of the top-level template, even if GetBaseTemplatePath
is called from an included template.
<!--- This example uses GetCurrentTemplatePath to show the template path of the current page ---> <html> <head> <title> GetCurrentTemplatePath Example </title> </head> <body> <H3>GetCurrentTemplatePath Example</H3> <P>The template path of the current page is: <cfoutput>#GetCurrentTemplatePath()#</cfoutput> </body> </html>