cancel
Showing results for 
Search instead for 
Did you mean: 

Change Type from Custom Type back to Content Base Type

gukguk
Champ in-the-making
Champ in-the-making
Hi !

I can manage to change type from content base type(cm:content) to my custom type(my:customtype) but if i try to change it back to cm:content it throw an error.
Is it not possible to change back custom type document to cm:content?
Thanks
3 REPLIES 3

openpj
Elite Collaborator
Elite Collaborator
No, it is not possible to specialize a node from a specialized node to the base type. Because in this way you are removing properties and the Alfresco model doesn't allow this type of operations using types. I suggest you to change your model adding some aspects that can be added and removed from a node. Each aspect will manage a group of properties and/or associations.

That's why for the content model you only follow an append approach: you can add definitions but you can't remove any definitions.

You can create a rule with an action (written in Javascript) that can be triggered to create a new node and moving the content from the old node to the new one.
But if you have a model based on aspects you can create your rule in a better way without creating new nodes.

Hope this helps.

gukguk
Champ in-the-making
Champ in-the-making
Thanks OpenPj
Your answer is really helpful

bhavana
Champ in-the-making
Champ in-the-making
Hi

I am also trying out the same thing. I want an option to reselect the change type option for changing the content type.
I know its not possible out of the box, but did anyone get any way out to achieve the above said requirement.

Thanks