Solved

CFML cfif question

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Today, I was working on some optimization and spam-stopping techniques when I encountered Ben Nadel's post to reduce spam feature using Math (http://www.bennadel.com/blog/197-How-I-Stop-Spammers-On-My-ColdFusion-Blog.htm). While this method is not o…
Sometimes databases have MILLIONS of records and we need a way to quickly query that table to return the results me need. Sure you could use CFQUERY but it takes too long when there are millions of records. That is why SOLR was invented. Please …
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

728 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