cancel
Showing results for 
Search instead for 
Did you mean: 

Custom DataList + selectone.ftl

fabrizio90
Champ in-the-making
Champ in-the-making
Hi all guys,

i'm trying to create a custom template for a DataList in my Alfresco Share.

This discussion helped me a lot: https://forums.alfresco.com/forum/end-user-discussions/alfresco-share/custom-data-list-09232011-1454...

But now, i want to create a filed in the table 3 value (for priority: high, low, normal).

In the datalist model i've defined:


<property name="tl:priorita">
<title>Priorità</title>
<type>d:text</type>
<mandatory>false</mandatory>
</property>


In the share-config-custom.xml:


<field id="tl:priorita">
<control template="/org/alfresco/components/form/controls/selectone.ftl"/>
<control-param name="options">alta,bassa,normale</control-param>   
<control-param name="forceEditable">true</control-param>               
</field>


But the option are not displayed.

What's the problem???


I'm on Alfresco 4.2.d community edition
1 REPLY 1

fabrizio90
Champ in-the-making
Champ in-the-making
SOLVED!

the right code is:


<field id="tl:priorita">
<control template="/org/alfresco/components/form/controls/selectone.ftl">
<control-param name="options">alta,bassa,normale</control-param>
</control>   
</field>