how to add aspects to a custom type?

cancel
Showing results for 
Search instead for 
Did you mean: 
robjkamp
Member II

how to add aspects to a custom type?

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
krutik_jayswal
Senior Member II

Re: how to add aspects to a custom type?

Please add your content model xml.