>>You're spot on with the sub-folder query. I've got each section in it's
own
>>folder and each starting page is an index.cfm file. Thought it would be
>>better to keep everything modular.

in which case it may be best for you to do a check for URL containing
index.cfm and maybe
do a check on any subfolders something like seems to work:

<!--- Test for index.cfm and no subfolders, therefore don't show button --->
<cfif #listlen(cgi.SCRIPT_NAME,"/")# IS 1 and #cgi.SCRIPT_NAME# CONTAINS
"index.cfm">
Don't Show Main menu button
<!--- otherwise not home page - so show button--->
<cfelse>
Show main menu button
</cfif>

_______________________________________________________
*  Regards, 
                Richard Lovelock, 
                Senior Application Analyst.
Westminster City Council - Web Support
Cap Gemini Ernst & Young
Southbank
95 Wandsworth Road
London 
SW8 2HG 
(     0870 906 7482
 
_______________________________________________________


-----Original Message-----
From: James Buckingham [mailto:[EMAIL PROTECTED]
Sent: 09 February 2004 13:54
To: '[EMAIL PROTECTED]'
Subject: RE: [ cf-dev ] Getting the current page name


God, lots of answers :)

I'll keep all these in mind actually as I'm sure some of the other examples
could be adapted quite easily for use in other scenarios.

You're spot on with the sub-folder query. I've got each section in it's own
folder and each starting page is an index.cfm file. Thought it would be
better to keep everything modular.

Cheers again,
James

-----Original Message-----
From: Lovelock, Richard J [mailto:[EMAIL PROTECTED] 
Sent: 09 February 2004 13:28
To: '[EMAIL PROTECTED]'
Subject: RE: [ cf-dev ] Getting the current page name

we use a CMS and the homepage of each of the many subsites is index.cfm -
something to watch out for perhaps if similar for you (i.e. index.cfm of a
subsite you would want to show Main menu button on i would guess?)

_______________________________________________________
*  Regards, 
                Richard Lovelock, 
                Senior Application Analyst.
Westminster City Council - Web Support
Cap Gemini Ernst & Young
Southbank
95 Wandsworth Road
London
SW8 2HG 
(     0870 906 7482
 
_______________________________________________________


-----Original Message-----
From: Stephen Pope [mailto:[EMAIL PROTECTED]
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]


=======================================================
This message contains information that may be privileged or confidential and
is the property of the Cap Gemini Ernst & Young Group. It is intended only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all copies
of this message.
=======================================================


--
** 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]

Reply via email to