No, all that code does is give you the current page. All cgi variables are
available on all pages.
The cgi variable script_name will give the current url with out the server
address. IE: /shoppingcart/orderform.cfm.
The listlast() will give the last value in a list. So you specify the list
delimiter as a "/" and voila.
Check it out, just do a <cfoutput>#listlast(cgi.script_name,"/")#</cfoutput>
on a test page and see if that is what you need. I'm not totally sure it's
what you need. Too much caffeine right now so my attention span sucks ;-)
jon
----- Original Message -----
From: "Jeff Davis" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Saturday, March 03, 2001 4:35 PM
Subject: Re: Dynamic page detection.
> Will I need define anything in the Application file to make that script
> work?
>
>
> ----- Original Message -----
> From: "Jon Hall" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Saturday, March 03, 2001 4:40 PM
> Subject: Re: Dynamic page detection.
>
>
> > current page = #listlast(cgi.script_name,"/")#
> >
> > ----- Original Message -----
> > From: "Jeff Davis" <[EMAIL PROTECTED]>
> > To: "CF-Talk" <[EMAIL PROTECTED]>
> > Sent: Saturday, March 03, 2001 4:16 PM
> > Subject: Dynamic page detection.
> >
> >
> > > Hello.
> > >
> > > Is there a script or tag that will display the current page name.
I
> > have
> > > a link to an external shopping cart and I have to use a long URL that
> > > contains a return to a page link and I would like to be able to return
> the
> > > user to the page form which they left rather than always send them
back
> to
> > > the same page every time. Thanks.
> > >
> > > Jeff Davis
> > >
> > >
> > >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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