cancel
Showing results for 
Search instead for 
Did you mean: 

Change Content Type failure

mkieboom
Champ in-the-making
Champ in-the-making
Hi there,


I created the following content model and added the different content types to the share configuration to be able to change content from cm:content to i.e. kb:Brochure


   <types>
      <type name="kb:Brochure">
         <title>Brochure</title>
         <parent>cm:content</parent>
         <mandatory-aspects>
            <aspect>cm:taggable</aspect>
         </mandatory-aspects>
      </type>
      <type name="kb:Datasheet">
         <title>Datasheet</title>
         <parent>cm:content</parent>
         <properties>
            <property name="kb:DatasheetFabrikant">
               <title>Fabrikant</title>
               <type>d:text</type>
               <mandatory>false</mandatory>
            </property>
         </properties>
         <mandatory-aspects>
            <aspect>cm:taggable</aspect>
         </mandatory-aspects>
      </type>
      <type name="kb:Manual">
         <title>Manual</title>
         <parent>cm:content</parent>
         <mandatory-aspects>
            <aspect>cm:taggable</aspect>
         </mandatory-aspects>
      </type>
      <type name="kb:Planning">
         <title>Planning</title>
         <parent>cm:content</parent>
         <mandatory-aspects>
            <aspect>cm:taggable</aspect>
         </mandatory-aspects>
      </type>
      <type name="kb:Software">
         <title>Software</title>
         <parent>cm:content</parent>
         <mandatory-aspects>
            <aspect>cm:taggable</aspect>
         </mandatory-aspects>
      </type>
      <type name="kb:BillOfMaterial">
         <title>Bill of Material</title>
         <parent>cm:content</parent>
         <mandatory-aspects>
            <aspect>cm:taggable</aspect>
         </mandatory-aspects>
      </type>
   </types>

And in share-config-custom.xml the following:


<config evaluator="string-compare" condition="DocumentLibrary" replace="true">
<types>
         <type name="cm:content">
            <subtype name="kb:BillOfMaterial" />
            <subtype name="kb:Brochure" />
            <subtype name="kb:Datasheet" />
            <subtype name="kb:Manual" />
            <subtype name="kb:Planning" />
            <subtype name="kb:Software" />
         </type>
         <type name="kb:BillOfMaterial">
            <subtype name="cm:content" />
            <subtype name="kb:Brochure" />
            <subtype name="kb:Datasheet" />
            <subtype name="kb:Manual" />
            <subtype name="kb:Planning" />
            <subtype name="kb:Software" />
         </type>
         <type name="kb:Brochure">
            <subtype name="cm:content" />
            <subtype name="kb:BillOfMaterial" />
            <subtype name="kb:Datasheet" />
            <subtype name="kb:Manual" />
            <subtype name="kb:Planning" />
            <subtype name="kb:Software" />
         </type>
…. etc.

However if I want to change a document from a custom content type to another type cm:content or kb:Manual, I get a failure: message.change-type.failure
Does anyone have a clue what I'm doing wrong?

Kind regards,


Marcel Kieboom
1 REPLY 1

mkieboom
Champ in-the-making
Champ in-the-making