Solved

conditional meta tags based on url contents

Posted on 2004-08-19
2
251 Views
Last Modified: 2013-12-24
how can i display different meta tags for keyword,desrcitpion, and title based on a url value in category variable?



0
Comment
Question by:finnstone
[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
2 Comments
 
LVL 17

Accepted Solution

by:
Tacobell777 earned 500 total points
ID: 11848481
<cfswitch expression="#url.varName#">
      <cfcase value="meta1">
            <meta name="Description" content="fdfsd">
      </cfcase>
      <cfcase value="meta2">
            <meta name="Description" content="fdfsdfdff">
      </cfcase>
      <cfcase value="meta2">
            <meta name="Description" content="ffdsfsdfff">
      </cfcase>
      <cfdefaultcase>
            <meta name="Description" content="fdsfdfsdffdff">
      </cfdefaultcase>
</cfswitch>
0
 
LVL 17

Expert Comment

by:Tacobell777
ID: 11848484
Or write the meta tag to the header with <cfhtmlhead text="<meta name='dsfsd'>">
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
What You Need to Know when Searching for a Webhost Provider
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

730 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