Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • hetaurhet 245 posts 267 karma points
    Sep 26, 2011 @ 17:08
    hetaurhet
    0

    dynamically change meta tags

    hello....

    I want to change dynamically meta tags on the page depending on the querystring params value.... is that possible?

  • Tim 1189 posts 2638 karma points c-trib
    Sep 28, 2011 @ 10:13
    Tim
    0

    Yes. You'll need to render the tags using a Macro, either using XSLT or Razor. You can then perform whatever logic you require and use that to render out the meta tags. It's something we use all the time, so that if the meta description isn't added, it falls back to the first n characters of the body copy.

  • hetaurhet 245 posts 267 karma points
    Sep 28, 2011 @ 16:17
    hetaurhet
    0

    Hey Tim, tankx. Will work on the same and if stuck then will get back to you.

  • hetaurhet 245 posts 267 karma points
    Sep 30, 2011 @ 15:03
    hetaurhet
    0

    hey I am stuck. I am using usercontrol for my dynamic page. My meta fields are on dynamicpage document type. I want to have my meta tags dynamically change as

    meta tag = meta tag of field (which in on doc type) + querystring param value ... ...

    so what to do?

  • hetaurhet 245 posts 267 karma points
    Sep 20, 2012 @ 10:59
    hetaurhet
    0

    I solved the problem myself using razor

Please Sign in or register to post replies

Write your reply to:

Draft