Solved

CFML cfif question

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
Hi, Even though I have created this Tutorial on My personal Blog, Some people might not able to find my website, So here i am posting it again Today, from the topic it is very clear that i will be showing you here the very basic usage of how we …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

911 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