Solved

CFML cfif question

Posted on 2011-09-08
2
274 Views
Last Modified: 2012-05-12
In my header.cfm (added to each page as an include) I have included some social buttons like fb,google +1, twitter. There is one page where I do not want these buttons included. is it possible to use some conditional processing like <cfif  url NEQ "the url i dont want buttons to show up">show my buttons <cfelse> </cfif>
0
Comment
Question by:Bang-O-Matic
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 39

Accepted Solution

by:
gdemaria earned 500 total points
ID: 36503076

the page name is stored in this variable...

 cgi.script_name  

that is everything after the .com/

So you could say...

<cfif listLast(cgi.script_name,"/\") is not "aboutus.cfm">
   .... do buttons...
</cfif>


That would not show on any aboutUs.cfm page regardless of the folder

 
0
 

Author Closing Comment

by:Bang-O-Matic
ID: 36503095
Perfect! Thanks
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
CFdocumnet font issue 5 51
Coldfusion - check if two values are within a range 4 71
paging 3 53
Scrolling feed with Coldfusion 3 65
This is an updated version of a post made on my blog over 3 years ago. It is unfortunately, still very relevant as we continue to see both SQLi (SQL injection) and XSS (cross site scripting) attacks hitting some of the most recognizable website and …
Hi. There are several upload tutorials using jquery and coldfusion. I found a very interesting one here Upload Your Files using Jquery & ColdFusion and Preview them (http://www.randhawaworld.com/) . I did keep the main js functions but made sever…
Suggested Courses

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question