cancel
Showing results for 
Search instead for 
Did you mean: 

Disable cm:autoVersionOnUpdateProps

florian_baillag
Champ in-the-making
Champ in-the-making
Hi !

I manage documents trough DotCMIS and I update properties (Author, description) of document each new version.

So I have two new version each time I want to upload a (new version) document.

I'm trying to set the cm:autoVersionOnUpdateProps to false in order to resolve this problem and I can't find a solution.

I found documentation about this but it was for previous versions and didn't work with mine. (Solution : Modify contentModel.xml. But I can't find this file)

I'm using Alfresco Community 5.0.a.

Thanks Smiley Happy
4 REPLIES 4

niketapatel
Star Contributor
Star Contributor
Add version.store.enableAutoVersioning=false in your alfresco-global.properties

Please refer: http://docs.alfresco.com/community/tasks/autoversion-disable.html

Hi,

This method disable the auto versioning. I just want to disable the versioning on properties update.

Can we put something like store.enableAutoVersioningOnPropsUpdate = false?

niketapatel
Star Contributor
Star Contributor
Its not available.

You can set this property cm:autoVersionOnUpdateProps to false in contentModel.xml located at - tomcat\webapps\alfresco\WEB-INF\classes\alfresco\model. I would suggest NOT to modify existing content model.

Or when you update property, you can check if P:cm:versionable aspect is applied on content then set this cm:autoVersionOnUpdateProps to false for that particular content


Seems like tomcat\webapps\alfresco\WEB-INF\classes\alfresco\model\contentModel.xml doesn't exist anymore on Alfresco 5.0.a.

I'll try your second method.

Thanks Smiley Happy