Or use #ListLast(CGI.SCRIPT_NAME,"/")# to grab the last element of the URL and check that.
Stephen -----Original Message----- From: Stephen Pope Sent: 09 February 2004 13:23 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] Getting the current page name <CFIF NOT CGI.SCRIPT_NAME contains "index.cfm"> #DisplayMenuButton()# </CFIF> Stephen -----Original Message----- From: James Buckingham [mailto:[EMAIL PROTECTED] Sent: 09 February 2004 13:21 To: '[EMAIL PROTECTED]' 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]
