Developer forum

Forum » Templates » Override meta description tag

Override meta description tag

Jacob Storgaard Jensen
Reply

Hi guys,

I have paragraph items published with the item publisher module - I would like to override the meta description on the details view of each of these items.

I've tried everything that I can imagine, but can't seem to get it to override it...

 

This is what I've done (@ is removed):

<!--If(1==2)-->
<!--MetaTags-->
<!--EndIf-->
<meta name="description" content="<!--Meta.Description-->"> THIS ONE IS NOT RENDERED
<base href="http://domain.com/" />
<meta name="Generator" content="Dynamicweb 8" />

 


Replies

 
Jacob Storgaard Jensen
Reply
This post has been marked as an answer

Got it to work... :-)

    <!--If Not(Global:Pageview.Url.Raw<contains>itemid)--><!--MetaTags--><!--@EndIf-->
    <!--If(Global:Pageview.Url.Raw<contains>itemid)--><!--Snippet(MetaDescription)-->
    <base href="http://domain.com/" />
    <meta name="Generator" content="Dynamicweb 8" />
    <!--EndIf-->

 

Votes for this answer: 1

 

You must be logged in to post in the forum