stk:head.create-open-graph-meta(template)

Creates Open Graph metadata elements.

element()*stk:head.create-open-graph-meta
  1. xs:stringtitle
  2. xs:stringtype
  3. xs:string?image

Og:url and og:site_name are set automatically, og:title and og:type have default values, but can be overriden. Og:image must be set specifically. 

Examples

Input

<xsl:call-template name="stk:head.create-open-graph-meta"/>

Result

<meta property="og:title" content="stk:head.create-open-graph-meta"></meta><meta property="og:url" content="https://enonic.com/stk/template-reference/xslt/head/stk-head.create-open-graph-meta"></meta><meta property="og:type" content="website"></meta><meta property="og:site_name" content="Enonic STK"></meta>

Parameters

title
Open Graph title
Type
xs:string
Default
stk:navigation.get-menuitem-name($stk:current-resource)
type
Open Graph type
Type
xs:string
Default
'website'
image
Open Graph image
Type
xs:string?