Make Version start from 0 ?

OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules
Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
Post Reply
Expert Boarder
Expert Boarder
Posts: 83
Joined: Mon Jun 25, 2018 5:13 am

Make Version start from 0 ?

Post by mamad » Wed Mar 13, 2019 12:30 pm

Hi guys,
I'm using openkm6.3.7-DEV community edition
I want to know is it possible to make versions of a document starting from 0 not 1?
It means when i upload a document the first version become 0.0
I have the openkm development environment and there is no problem to change source code if it need any change.
Thanks in advance

Posts: 10501
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain

Re: Make Version start from 0 ?

Post by jllort » Fri Mar 15, 2019 7:20 am

You should build your own Version Number Adapter, take a look at: ... apter.html ...

My suggestion is clone the class MajorMinorReleaseVersionNumerationAdapter and apply into the modifications
Finally should change the value of the configuration parameter named version.numeration.adapter ( Administration > Configuration parameters ) ... ation.html
And restart OpenKM to take effect.

Remember you have our Personal OpenKM development environment ( VM based ) what you can download to get a rapid development scenario, ready to be used ( there's a video what explains how to configure ).

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests