kentico_michal
-
3/27/2012 6:04:27 AM
RE:How to dynamically add the Open Graph metaproperties?
Hello,
You can take advantage of the Head HTML code web part that allows you to insert custom HTML code into the HEAD element of the page. It has a property called HTML code in which you can specify a context macro so that the code is taken from the current document. For example, if the field that contains the metadata is called MenuItemDescription, you can specify the following macro with the default value for documents that do not have the MenuItemDescription field:
HTML code: {%MenuItemDescription|(default)default value%}
Best regards, Michal Legen
|