Where is content-model.xml located

Showing results for 
Search instead for 
Did you mean: 
Active Member

Where is content-model.xml located


Where is content-model.xml file located in alfresco share community edition 5.1?

2 Replies

Re: Where is content-model.xml located

It is not located in Share at all. The contentModel.xml is part of the Repository (backend) and as such located inside the alfresco-repository-x.y.jar in the webapps/alfresco/WEB-INF/lib/ folder. The source of it can be found in GitHub, though due to various migrations / relocations, it will be hard to find the exact state for 5.1. The contentModel.xml should generally not be modified - any reasonable requirement should be solveable by using clean customisation patterns via custom models / behaviours etc.


Re: Where is content-model.xml located

Can you provide bit more details as to what you are trying to achieve? If you are looking for out of the box contentmodel, here is the link for your refernce: 


All ootb models: https://github.com/Alfresco/alfresco-community-repo/tree/master/repository/src/main/resources/alfres...

You can also find the outofthebox content mdoel in "alfresco-repository-5.x.x.jar" file in the exploded war at this location: <ALF_INSTALL_DIR>\tomcat\webapps\alfresco\WEB-INF\lib\alfresco-repository-5.x.x.jar\alfresco\model\ 

Please note that, you should never make any modifications/alternations to the out of the box content-model.xml file. 

To learn more checkout these posts: 




[EDIT]: A useful response is already provided by @afaust 

(ACSCE, AWS SAA, Azure Admin)