If you don't want to use CGI vars, try...
<cfoutput>
#GetFileFromPath(GetCurrentTemplatePath())#
#GetFileFromPath(GetBaseTemplatePath())#
</cfoutput>
One will get the base file the other the current would you believe :O)
Ade
-----Original Message-----
From: James Buckingham [mailto:[EMAIL PROTECTED]
Sent: 09 February 2004 13:06
To: '[EMAIL PROTECTED]'
Subject: [ cf-dev ] Getting the current page name
Hi guys,
I swear I saw this on the Macromedia Forums a few weeks ago but it seems to
have disappeared. I'm basically needing to know what the current page
filename is. For example, index.cfm and nothing else.
I saw a bit of code that worked through CGI which did this but everything
I'm finding now is either giving me the full URL address or the folder + the
file name.
Any ideas?
Cheers again,
James
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]