Developer forum

Forum » Templates » RE: Ecom Data in master template

RE: Ecom Data in master template

Jan Sangill
Reply

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?


Replies

 
Mikkel Ricky
Reply
This post has been marked as an answer

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

 

Votes for this answer: 1
 
Jan Sangill
Reply

Perfekt. Var jo lige hvad jeg manglede!

 

You must be logged in to post in the forum