AnsweredAssumed Answered

Custom folder : constraints on space name

Question asked by yannicks on Aug 14, 2007
Latest reply on Aug 14, 2007 by yannicks
Hello,

I'd like to create a special type of folder with a list of name!
I thought that i can constraint the cm:name but i think i forget something!
I heard about specialization but don't know how to do it and i can' t find informations

my code is this :


<type name="gr:projectPhaseFolder">
       <title>phase de projet</title>
       <parent>cm:folder</parent>
       <properties>
    <property name="cm:name">
      <type>cm:name</type>
      <constraints>
        <constraint name="gr:folderName" type="LIST">
          <parameter name="allowedValues">
       <list>
         <value>20</value>
         <value>30</value>
         <value>40</value>
         <value>45</value>
         <value>50</value>
         <value>60</value>
       </list>
          </parameter>
        </constraint>
      </constraints>
    </property>
       </properties>
     </type>

Is my code wrong or must i do it in another manner?

Thanks for the answers,

Yannick

Outcomes