Getcurrenttemplatepath - MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Reference

Cfml language reference
Table of Contents

Advertisement

Chapter 2: ColdFusion Functions

GetCurrentTemplatePath

Returns the fully specified path of the template containing the call to this function.
See also GetBaseTemplatePath,
Syntax
GetCurrentTemplatePath()
Usage
This function differs from GetBaseTemplatePath in that it will return the template path
of an included template if the call is made from a template included with a
CFINCLUDE tag; whereas GetBaseTemplatePath returns the template path of the top-
level template even when the call to GetBaseTemplatePath is actually made from an
included template.
Example
<!--- 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>
FileExists
and ExpandPath.
357

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Coldfusion 4.5

Table of Contents