A regular HTML file has the below structure:
<html> <head> <title>You page title</title <meta property="og:title" content="The Rock" /> <meta property="og:type" content="video.movie" /> <meta property="og:url" content="http://www.imdb.com/title/tt0117500/" /> <meta property="og:image" content="http://ia.media-imdb.com/images/rock.jpg" /> </head> <body> ..... </body> </html>
Generally most of the information in
<head> block would be generated from a Page Template, however information for most Open Graph tags would need to be read from the component (example Product Details page) to make it more relevant and to optimize SEO.
What is the best approach to get such metadata at the page template level? We are using SDL Tridion 2013 SP1 to publish JSP pages and DCPs, if that makes any difference on the approach?