留言板

RE: how to access meta data fields in cms templates?

First Timer,修改在11 年前。

how to access meta data fields in cms templates?

New Member 帖子: 5 加入日期: 11-8-24 最近的帖子
Hi,
I have the following structure for a web content

<dynamic-element name="tabs-0" type="text_area" index-type="" repeatable="false">
<meta-data>
<entry name="displayAsTooltip"><![CDATA[false]]></entry>
<entry name="required"><![CDATA[true]]></entry>
<entry name="instructions"><![CDATA[]]></entry>
<entry name="label"><![CDATA[Client]]></entry>
<entry name="predefinedValue"><![CDATA[]]></entry>
</meta-data>
</dynamic-element>


I need to know how can i access the entry names and values in corresponding velocity template?

Please help me out.
thumbnail
Jignesh Vachhani,修改在11 年前。

RE: how to access meta data fields in cms templates?

Liferay Master 帖子: 803 加入日期: 08-3-10 最近的帖子
Hi

Have a look on on this Blog .
Hope this will help you for the same query.
First Timer,修改在11 年前。

RE: how to access meta data fields in cms templates?

New Member 帖子: 5 加入日期: 11-8-24 最近的帖子
I'm comfortable in getting dynamic element name and data.
But I need to fetch the entry name and values lying in meta-data fields