Contrast this with the GetCurrentTemplatePath function, which, if called from an included page returns the page path of the included template rather than the base (including) template.
Example
<h3>GetBaseTemplatePath Example</h3>
<p>The template path of the current page is:
<cfoutput>#GetBaseTemplatePath()#</cfoutput>
<p>The directory containing the current template is:
<cfoutput>#GetDirectoryFromPath(GetBaseTemplatePath())#</cfoutput>
Share this page
Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.