That's probably because the code is in the root of the site, if it were in a sub dir you'd get the folders too.
Ade -----Original Message----- From: Ian Westbrook (BT account) [mailto:[EMAIL PROTECTED] Sent: 09 February 2004 13:23 To: [EMAIL PROTECTED] Subject: Re: [ cf-dev ] Getting the current page name well that's odd, cause on my site I'm doing some code like <cfif cgi.SCRIPT_NAME IS '/index.cfm'> do something </cfif> and it works fine... Ian W ----- Original Message ----- From: "James Buckingham" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 09, 2004 1:20 PM Subject: RE: [ cf-dev ] Getting the current page name > No that just gives me: > > /Virtual_Directory_Name/Folder_Name/index.cfm > > I'm needing just > > Index.cfm > > To give you a bit more info, I'm needing this for an include file which is > in the header of a CMS. I'm needing to use this to determine if the 'main > menu' button should be shown or not. So basically IF the user is on the > login page (index.cfm) don't show the button, everything else is fine. > > Hope that makes sense. > > Cheers, > James > > -----Original Message----- > From: Ian Westbrook (BT account) [mailto:[EMAIL PROTECTED] > Sent: 09 February 2004 13:09 > To: [EMAIL PROTECTED] > Subject: Re: [ cf-dev ] Getting the current page name > > CGI.SCRIPT_NAME ? > > Ian W > > ----- Original Message ----- > From: "James Buckingham" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, February 09, 2004 1:05 PM > 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] > > -- > ** 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] > > -- ** 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] -- ** 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]
