Foros de discusión

How to Add meta property dynamically from velocity template

Dave ., modificado hace 6 años.

How to Add meta property dynamically from velocity template

New Member Mensajes: 5 Fecha de incorporación: 10/02/15 Mensajes recientes
Hi,
Is there any way to add page meta properties into head from velocity template?
Probably something equivalent of this
<liferay-util:html-top>
    <meta content="<%=currentURL %>" property="og:url">
    <meta content="article" property="og:type">
    <meta content="<%=yourArticleTitle %>" property="og:title">
    <meta content="<%=yourImageUrl %>" property="og:image">
</liferay-util:html-top>

Please help me,
THX
Dave ., modificado hace 6 años.

RE: How to Add meta property dynamically from velocity template

New Member Mensajes: 5 Fecha de incorporación: 10/02/15 Mensajes recientes
I found this
$portalUtil.addPageDescription('your content here', HttpServletRequest)
but doesn't work.
Is there an example of use of $portalUtil in liferay velocity template?