AnsweredAssumed Answered

Overriding cm:content

Question asked by zladuric on Jul 15, 2010
Latest reply on Apr 18, 2014 by electroshokker
Hello,

I have a custom content type inheriting cm:content. I also have cm:content indexing set to false, now I want to enable it for this case.

So my custom type (in extended myco-model.xml) looks something like this:

<type name="my:type">
    <title>irrelevant</title>
    <parent>cm:content</parent>
    <properties>
           …
           …
    </properties>
<!– I add my override here: –>
    <overrides>
   <property name="cm:content">
          <type>d:content</type>
     <mandatory>false</mandatory>
     <index enabled="true">
         <atomic>true</atomic>
         <stored>false</stored>
         <tokenised>true</tokenised>
      </index>
   </property>
    </overrides>  
</type>

Now, I get an error at bootstrap:
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}type" start tag (line 1422, col 23)
        at org.jibx.runtime.impl.UnmarshallingContext.parsePastCurrentEndTag(UnmarshallingContext.java:800)

Now I checked over and over, the syntax and all it seems fine, I just can't override the content indexing for this type.

Where else could I look?

Outcomes