I needed to do the same thing for an application once.  Here is the code I
used to get the name of the current template:

<cfoutput>
#Reverse(Left(Reverse(cgi.script_name), (Find('/',Reverse(cgi.script_name))
- 1)))#
</cfoutput>


Hope this is what you were asking for.

Steven Semrau
SRA International, Inc.
Senior Member, Professional Staff
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Com:  (703) 805-1095
DSN:  (703) 655-1095


"Justin" <[EMAIL PROTECTED]> wrote in message <news:[EMAIL PROTECTED]>... 
> Can someone point me to the ColdFusion CGI variable that would return 
> the URL of the page the user is browsing. For example, 
> #cgi.somevariable# and if they were browsing 
> <http://www.yahoo.com/page.cfm>, the variable would return "page.cfm" 
> without the domain. 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to