AnsweredAssumed Answered

Custom Type - Properties Cardinality

Question asked by woody on Jul 21, 2010
Latest reply on Jul 23, 2010 by woody
Is there a way to add, in a custom type definition, a properties that can be repeted N times.

For example, in my case I've to insert the possibility to add more then 1 phone number, composed as 2 properties (prefix and number). How can I define that in my customModel.xml ?

Here my code

   <type name="my:worker">
         <title>Worker</title>
         <parent>cm:content</parent>
         <properties>
             […]
            <property name="my:prefix">
                  <type>d:text</type>
            </property>
            <property name="my:number">
               <type>d:text</type>
            </property>
            […]

How can I repeat the 2 properties prefix and number N times? And how it is rendered within Share form Engine?

Sorry for the easy question, but I cannot find a solution to that…

Outcomes