06-02-2021 08:09 AM
Hi,
Where is content-model.xml file located in alfresco share community edition 5.1?
06-02-2021 09:11 AM
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.
06-02-2021 09:18 AM
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:
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
Explore our Alfresco products with the links below. Use labels to filter content by product module.