Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Adding FB og metadata to existing page View modes: 
User avatar
Member
Member
weelee.yeo-tribalddb.com - 9/19/2012 1:03:31 AM
   
Adding FB og metadata to existing page
Hello guys,

Can we add the FB og meta data to an existing page without having to change the template used?

Thank you,
Best Regards,
Ronald Wisnu Hariyanto

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 9/19/2012 4:47:34 AM
   
RE:Adding FB og metadata to existing page
Hello,


I am not sure what "FB og meta data" is. Can you please provide me with more details and a sample? Is it a standard metadata in the <head> section?


Best regards,
Helena Grulichova


User avatar
Member
Member
weelee.yeo-tribalddb.com - 9/19/2012 5:51:10 AM
   
RE:Adding FB og metadata to existing page
Hi Helena,

it is the meta tag that are used to share on Facebook, usually it looks like:

<meta property="og:title" content="Content Here" />
<meta property="og:image" content="image url here" />
<meta property="og:description" content="description here" />

It similar to normal meta tag

Thank you,
Best Regards,
Ronald Wisnu Hariyanto

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 9/20/2012 2:34:11 AM
   
RE:Adding FB og metadata to existing page
Hi Ronald,


you can use the Head HTML code web part which inserts HTML code the the <head> section. If you want to make the web part visible only on one page, you can use the Visible property (http://devnet.kentico.com/FAQs/API-and-Internals/How-to-set-up-a-web-part-to-be-visible-on-two-page.aspx).

You can also add the code to document Properties -> Template -> edit -> Header. Please note that then it will occur on all instances of this template.


Best regards,
Helena Grulichova

User avatar
Member
Member
sergio-circolodiapason - 1/6/2013 5:38:14 PM
   
RE:Adding FB og metadata to existing page
Just a question, but if I use the Head HTML code web part, I get the same "meta" values in every page that use that template...
In my case I want to specify different "meta" tags for every article, but all articles use the same page template

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/6/2013 9:51:51 PM
   
RE:Adding FB og metadata to existing page
Hi,

Have you tried using macros? E.g. the context or page info macros are resolved with current document context so you can use it on all documents but the values resolved are different.

Best regards,
Juraj Ondrus