cancel
Showing results for 
Search instead for 
Did you mean: 

Custom folder : constraints on space name

yannicks
Champ in-the-making
Champ in-the-making
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
1 REPLY 1

yannicks
Champ in-the-making
Champ in-the-making
I know I'm wrong. But i don't know how to be right Smiley Tongue

I saw in the modelSchema.xsd a structure called overrides but i don't know how to use it!

Can somebody help me about that? I searched the web, the wiki and the forums but i can't find any information

Thanks for your answers,

Yannick