Solved

conditional meta tags based on url contents

Posted on 2004-08-19
2
245 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 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

856 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