GetCurrentTemplatePath() - get the current template path who call this function
GetCurrentTemplatePath.cfm
<!DOCTYPE html">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>GetCurrentTemplatePath function example: how to get the current template path who call this function</title>
</head>
<body>
<h2 style="color:Crimson">GetCurrentTemplatePath Function Example</h2>
<cfset CurrentTemplatePath=GetCurrentTemplatePath()>
<cfoutput>
<b>Current Template Path:</b> #CurrentTemplatePath#
</cfoutput>
</body>
</html>
- GetBaseTemplatePath() - get the absolute path of an application's base page
- GetContextRoot() - get the path of J2EE server context root for the current request
- GetDirectoryFromPath() - get a directory from an absolute path
- GetMetaData() - get the metadata information for coldfusion query object
- GetPageContext() - get the current coldfusion page context object
- GetTempFile() - create a temporary file in a directory
- WriteOutput() - append text to the page output stream