Manually Incrementing Version ID Whole Number | Community
Skip to main content
Level 3
October 16, 2015
Solved

Manually Incrementing Version ID Whole Number

  • October 16, 2015
  • 2 replies
  • 856 views

We have a requirement that when a page is activated, a version that is subsequently created should increment its id's whole number. So for example a page on version number 1.13, when activated, should create a version 2.0. Looking through the API there doesn't appear to be any way to control the actual version number, just the label. If we set the label to 2.0, obviously the next version manually created would be 1.15 because the label doesn't effect the actual id. Is there any way within CQ/JCR to change this number?

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Mshaji

We had the similar use case, it seems that you cannot control version numbers. It is only version label that can be controlled. On the side kick it looks like version numbers but they are actually version label. Sidekick displays version label in restore version column, however if there is no version label it displays version number in the column.

2 replies

MshajiCommunity AdvisorAccepted solution
Community Advisor
October 16, 2015

We had the similar use case, it seems that you cannot control version numbers. It is only version label that can be controlled. On the side kick it looks like version numbers but they are actually version label. Sidekick displays version label in restore version column, however if there is no version label it displays version number in the column.

Community Advisor
October 16, 2015

We had the similar use case, it seems that you cannot control version numbers. It is only version label that can be controlled. On the side kick it looks like version numbers but they are actually version label. Sidekick displays version label in restore version column, however if there is no version label it displays version number in the column.