cancel
Showing results for 
Search instead for 
Did you mean: 

Aspect Properties

nrai
Champ in-the-making
Champ in-the-making
hi

How can i create a drop down list of Aspect properties? So, that the value for that property can be selected through a drop down menu and not entered in a text field.
     
thanx

nrai
1 REPLY 1

lb118158
Champ in-the-making
Champ in-the-making
1) into the Model, introduce a contraints definition juste before the tag <types>


   
<constraints>
      <constraint name="pevod:vl" type="LIST">
         <parameter name="allowedValues">
            <list>
               <value>es</value>
               <value>cs</value>
               <value>da</value>
               <value>de</value>
               <value>et</value>
               <value>el</value>
               <value>en</value>
               <value>fr</value>
               <value>it</value>
               <value>lv</value>
               <value>lt</value>
               <value>hu</value>
               <value>mt</value>
               <value>nl</value>
               <value>pl</value>
               <value>pt</value>
               <value>sk</value>
               <value>sl</value>
               <value>sv</value>
            </list>
         </parameter>
      </constraint>
   </constraints>

2) create a propterty like this

                     
<property name="pevod:audio-language">
            <title>Audio language</title>
               <type>d:text</type>
               <constraints>
                  <constraint ref="pevod:vl"/>
               </constraints>
            </property>

3) edit the web-client-config-custom.xml and add

<show-property name="pevod:audio-language"/>

4) stop and start alfresco



Luc