cancel
Showing results for 
Search instead for 
Did you mean: 

revert to parent type

raoul
Champ in-the-making
Champ in-the-making
Hello,

I have implemented a simple test model with tutorials. I have the following type:

<type name="kb:space">
   <title>Knowledge Base Space</title>
   <parent>cm:folder</parent>
</type>


I have modified share-config-custom.xml so I can modify folder's type to Knowledge Base Space and it's working great.

Then I have tried to add this to share-config-custom.xml so I can revert back a kb space to a folder type:


<type name="cm:folder">
   <subtype name="kb:space" />
</type>


Share let me try to change the kb:space object's type but it fails and I have no error in catalina.out

How can I let my users revert back to parent's type when they fail and select the wrong child type?
3 REPLIES 3

mitpatoliya
Star Collaborator
Star Collaborator
sharec-config-custom.xml will not change the content type.
The configuration which you have posted

<type name="cm:folder">
   <subtype name="kb:space" />
</type>


that does not affect the content types at all it is configuration for alfresco share UI.
Also that configuration tells that kb:space is subtype of type cm:folder.
How can you expect that to revert back to default content type?

raoul
Champ in-the-making
Champ in-the-making
ah sorry, I indeed have copy/paste the wrong part which should have been:

<type name="kb:space">
   <subtype name="cm:folder" />
</type>

It was just to tell that I can try to revert from share's UI but it does not work and I have no idea what is missing in the model, or if it is even possible.

>> How can you expect that to revert back to default content type?
So how would you define two types, one child of the other, and the child revertable to the parent?