Solved

conditional meta tags based on url contents

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

617 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