cancel
Showing results for 
Search instead for 
Did you mean: 

how to add aspects to a custom type?

robjkamp
Champ in-the-making
Champ in-the-making

I'm trying to develop a model that has a custom type and some aspects. Now I have defined a base type called my:document and I want to add an aspect to that type, called my:aspect. I want to have this aspect show up in all the nodes that are from the my:document type and it's children also.

I have tried to add this in the model I downloaded from the model manager. I changed the my_model.xml and inserted the mandatory aspect into the mandatory-aspects element as per the developer guide

I zipped the model folder and during upload I get an error. The error is "The custom model doesn't support the 'mandatory-aspects' element.". 

I run Alfresco Community Edition 201707.

The question is the rationale on why the custom model is not accepting the mandatory-aspect. 

1 REPLY 1

krutik_jayswal
Elite Collaborator
Elite Collaborator

Please add your content model xml.