conditional meta tags based on url contents

how can i display different meta tags for keyword,desrcitpion, and title based on a url value in category variable?



finnstoneAsked:
Who is Participating?
 
Tacobell777Commented:
<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
 
Tacobell777Commented:
Or write the meta tag to the header with <cfhtmlhead text="<meta name='dsfsd'>">
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.