AnsweredAssumed Answered

override cm:name

Question asked by fararjeh on Dec 5, 2013
Latest reply on Dec 5, 2013 by fararjeh
I'm basically trying to override the 'cm:name' property of the cm:content but I keep getting an AlfrescoRuntimeException



Caused by: org.jibx.runtime.JiBXException: Expected "{http://www.alfresco.org/model/dictionary/1.0}property" end tag, found "{http://www.alfresco.org/model/dictionary/1.0}title" start tag (line 805, col 15)

My custom model


<type name="kaad:departmentPosition">
   <title>Position</title>
   <description>Job position in the department</description>
   <parent>cm:content</parent>
   <properties>
                <property name="kaad:departmentJobType">
           <title>Job Type</title>
                     <type>d:text</type>
            <constraints>
           <constraint ref="kaad:allowedEmployeeJobType" />
            </constraints>   
      </property>
         </properties>
    <overrides>
      <property name="cm:name">
         <title>Name</title>
         <type>d:int</type>
         <mandatory enforced="true">true</mandatory>
         <index enabled="true">
            <atomic>true</atomic>
            <stored>false</stored>
            <tokenised>both</tokenised>
         </index>
         <constraints>
              <constraint ref="cm:filename" />
         </constraints>
      </property>            
   </overrides>          
</type>   

is it possible to override cm:name ?

Outcomes