Whatever message this page gives is out now! Go check it out!

GetBaseTemplatePath

Last update:
May 18, 2026

Description

Gets the absolute path of an application’s base page.

Returns

The absolute path of the application base page, as a string.

Category

Function syntax

GetBaseTemplatePath()

See also

Usage

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.

On this page