Solved

CFML cfif question

Posted on 2011-09-08
2
269 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
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
I spent nearly three days trying to figure out how incorporate OAuth in Coldfusion for the Eventful API. Hopefully, this article will allow Coldfusion Programmers to buzz through the API when they need to. Basically, what this script does is authori…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

706 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now