home *** CD-ROM | disk | FTP | other *** search
- <!--- This example uses GetCurrentTemplatePath to show
- the template path of the current page --->
- <HTML>
- <HEAD>
- <TITLE>GetCurrentTemplatePath Example</TITLE>
- </HEAD>
-
- <BASEFONT FACE="Arial, Helvetica" SIZE=2>
- <BODY bgcolor="#FFFFD5">
-
- <BASEFONT FACE="Arial, Helvetica" SIZE=2>
- <BODY bgcolor="#FFFFD5">
- <H3>GetCurrentTemplatePath Example</H3>
-
- <CFOUTPUT>
- <P>GetBaseTemplatePath returns the template path of the current page:<BR>
- #GetBaseTemplatePath()#</P>
- </CFOUTPUT>
-
- <CFOUTPUT>
- <P>GetCurrentTemplatePath returns the template path of the page from which it is called:<BR>#GetCurrentTemplatePath()#
- </CFOUTPUT>
-
- <P>The difference between the two functions is that GetCurrentTemplatePath returns the name of
- the template from which it is called, even when it is called from an included file.</P>
-
- <P>The next line of code includes the template getbasetemplatepath.cfm.</P>
- <CFINCLUDE template="getbasetemplatepath.cfm">
- <CFINCLUDE template="getbasetemplatepath.cfm">
-
- </BODY>
- </HTML>
-