creating content model

cancel
Showing results for 
Search instead for 
Did you mean: 
yuva
Active Member

creating content model

I need to know what are data types are allowed to create properties in content model, I have added like this below type as property type is list, it does not accepted and thrown error. If i give type as text, its working fine. Please anyone can tell me, what are accepted data types to use in content model xml file.

<properties>

<property name="my:dateOfApplication">
<type>d:list</type>
<mandatory>false</mandatory>
</property>

</properties>

thank you.

2 Replies
kalpesh_c2
Senior Member

Re: creating content model

Hi,

There is no datatype like d:list. If you want to use predefined list of values as your property value, then you can use in the following manner 

<properties>
<property name="scwf:reviseOutcome">
   <type>d:text</type>   
     <default>Abort</default> 
       <constraints>
           <constraint type="LIST">    
          <parameter name="allowedValues">  
               <list>    
                <value>Re-submit</value>    
                <value>Abort</value>  
               </list>         
         </parameter>    
     </constraint>
   </constraints>  
</property>
</properties>             

If you have any further query then please let me know.

Thanks.

Kalpesh

ContCentric

rossgale
Active Member

Re: creating content model

Hi,

This page in the documentation contains all the details on the values to use in the content model:

Creating a new property for custom types and aspects | Alfresco Documentation 

Hope it helps!