AnsweredAssumed Answered

[SOLVED] Override contentModel.xml versionable aspect

Question asked by kbootz on Jan 28, 2010
apparently the title and type tags within the property section of the override caused an issue. remember to change your aspect references to your custom aspect, ie., cm:versionable - myModel:versionable


         <mandatory-aspects>
            <aspect>myModel:versionable</aspect>
         </mandatory-aspects>
      </type>
   </types>

<aspects>
      <aspect name="myModel:versionable">
         <title>Versionable</title>
         <parent>cm:versionable</parent>
         <overrides>
            <property name="cm:autoVersionOnUpdateProps">
               <default>false</default>
            </property>
          </overrides>
      </aspect>


Hello,
    I'd like to turn off the autoVersionOnUpdateProps within my custom content model so I did the following but during deployment I receive an error that title was found while property end tag was expected. I don't see any problems here vs the schema doc. Perhaps another set of eyes can see the issue?

Thanks

"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 336, col 23)"

:


   <aspects>

      <aspect name="myModel:versionable">
         <title>Versionable</title>
         <parent>cm:versionable</parent>
         <overrides>
            <property name="cm:autoVersionOnUpdateProps">
               <title>Auto Version - on update properties only</title>
               <type>d:boolean</type>
               <default>false</default>
            </property>
          </overrides>
      </aspect>
….

Outcomes