I've a structure in liferay which has a checkbox into a dynamic-element
tag (called item_name_1) Now how can i read checkbox value in my template ?
Structure
<dynamic-element dataType="string" indexType="keyword" name="item_name_1" readOnly="false" repeatable="true" required="false" showLabel="true" type="text" width="small">
<dynamic-element dataType="link-to-page" fieldNamespace="ddm" indexType="keyword" name="content_lnk" readOnly="false" repeatable="false" required="false" showLabel="true" type="ddm-link-to-page" width="small">
<dynamic-element dataType="boolean" indexType="keyword" name="service_menustat" readOnly="true" repeatable="true" required="false" showLabel="true" type="checkbox" width="">
<meta-data locale="fa_IR">
<entry name="label">
<![CDATA[منو بصورت پیش فرض باز باشد]]>
</entry>
<entry name="predefinedValue">
<![CDATA[false]]>
</entry>
<entry name="tip">
<![CDATA[]]>
</entry>
</meta-data>
</dynamic-element>
<meta-data locale="fa_IR">
<entry name="label">
<![CDATA[اتصال به صفحه]]>
</entry>
<entry name="predefinedValue">
<![CDATA[]]>
</entry>
<entry name="tip">
<![CDATA[]]>
</entry>
</meta-data>
</dynamic-element>
</dynamic-element>
also I tried to get specific checkbox in my template (velocity) using $service_menustat.getData()
and $service_menustat.data
and even '$service_menustat'
$service_menustat
is not exist in template intellisense..
Thanks
Aucun commentaire:
Enregistrer un commentaire