cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Content Model Location

ppurcellrr
Champ in-the-making
Champ in-the-making
Hello

At the company I work  a previous developer created a custom amp and created a  custom content model. The content model was placed in the custom amp.  We are using Alfresco 4.1.2 Enterprise  on Tomcat 6 on RHEL.

I wish to move the  location of the model definition to the tomcat / shared/ classes/alfresco directory.

I understand that if I delete the model or  remove the definition I will have problems if I see move the  location will
I run into those problems?
3 REPLIES 3

romschn
Star Collaborator
Star Collaborator
If I understand correctly then currently you have custom contentModel.xml placed under WEB-INF/classes/alfresco/model. Now, instead of putting it there, you want to place it under tomcat/shared/classes/alfresco/extension. If this is your requirement, then it is okay to move the file to this location. This way you are just separating your custom content model from out-of-the-box alfresco webapp which is a good practice. Just ensure that you also modify the context.xml loading your custom content model to point to the new location.
Hope this helps.

ppurcellrr
Champ in-the-making
Champ in-the-making
Thanks Ramesh

You understood correctly. I just wanted  to get a second opinion before I did something that has very far reaching possibilities.

Thanks again  this puts my mind at ease.

Patrick

mrogers
Star Contributor
Star Contributor
Moving location from where a model is loaded should not cause problems.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.