Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

conditional meta tags based on url contents

Posted on 2004-08-19
2
Medium Priority
?
261 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
  • 2
2 Comments
 
LVL 17

Accepted Solution

by:
Tacobell777 earned 2000 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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
What You Need to Know when Searching for a Webhost Provider
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

926 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