留言板
How to display label-text within Template
Stefan Ebonnek,修改在11 年前。
How to display label-text within Template
New Member 帖子: 2 加入日期: 13-3-7 最近的帖子
Hi there,
i have a structure which defines several fields.
We use '<entry name="label">' in the meta-data for displaying a field's title (to avoid the user sees cryptical variable names)
Here is the problem:
I wrote a template which should display a tabulary summary of all fields.
How can I access the Meta-data "label" within a template?
(Liferay 6.1)
regards
i have a structure which defines several fields.
We use '<entry name="label">' in the meta-data for displaying a field's title (to avoid the user sees cryptical variable names)
root>
<dynamic-element name="status" type="list" index-type="" repeatable="false">
<meta-data>
[...]
<entry name="label">Status</entry>
</meta-data>
<dynamic-element name="new" type="New" index-type="" repeatable="false"></dynamic-element>
<dynamic-element name="launched" type="Launched" index-type="" repeatable="false"></dynamic-element>
<dynamic-element name="closed" type="Closed" index-type="" repeatable="false" />
</dynamic-element>
...
Here is the problem:
I wrote a template which should display a tabulary summary of all fields.
How can I access the Meta-data "label" within a template?
<table>
<tbody><tr>
<td>Here I want to have the label text "Status"</td>
<td>$status.getData()</td>
</tr>
</tbody></table>
(Liferay 6.1)
regards