掲示板
How to Add meta property dynamically from velocity template
6年前 に Dave . によって更新されました。
How to Add meta property dynamically from velocity template
New Member 投稿: 5 参加年月日: 15/02/10 最新の投稿
Hi,
Is there any way to add page meta properties into head from velocity template?
Probably something equivalent of this
Please help me,
THX
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
6年前 に Dave . によって更新されました。
RE: How to Add meta property dynamically from velocity template
New Member 投稿: 5 参加年月日: 15/02/10 最新の投稿
I found this
Is there an example of use of $portalUtil in liferay velocity template?
$portalUtil.addPageDescription('your content here', HttpServletRequest)
but doesn't work.Is there an example of use of $portalUtil in liferay velocity template?