Where is content-model.xml located

cancel
Showing results for 
Search instead for 
Did you mean: 
sneha-lolge
Active Member

Where is content-model.xml located

Hi,

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

2 Replies
afaust
Master

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.

abhinavmishra14
Advanced

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: 

https://github.com/Alfresco/alfresco-community-repo/blob/master/repository/src/main/resources/alfres...

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: 

https://docs.alfresco.com/content-services/5.2/develop/repo-ext-points/content-model/

http://ecmarchitect.com/alfresco-developer-series-tutorials/content/tutorial/tutorial.html

 

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

~Abhinav
(ACSCE, AWS SAA, Azure Admin)