Hi,
I need to write out customfield data into the header of my master template for use to facebook graph tags.
Facebook requires this to be in the header.
Is this possible?
Hi,
I need to write out customfield data into the header of my master template for use to facebook graph tags.
Facebook requires this to be in the header.
Is this possible?
Yes, you can use a Snippet (http://templates.dynamicweb-cms.com/TemplateTags/Dynamicweb-template-tags/General-tags/Snippet.aspx) for this.
Add this to the head element in your master template
<!--@Snippet(OpenGraph)-->
and put content into the snippet in your eCom template like this:
<!--@SnippetStart(OpenGraph)--> <meta property="og:title" content="<!--@Ecom:Product.Name-->"/> … <!--@SnippetStart(OpenGraph)-->
Best regards,
Mikkel
Perfekt. Var jo lige hvad jeg manglede!
You must be logged in to post in the forum