Expand my Community achievements bar.

Applications for the 2024-2025 Adobe Experience Manager Champion Program are open!
SOLVED

Manually Incrementing Version ID Whole Number

Avatar

Level 4

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

1 Accepted Solution

Avatar

Correct answer by
Level 9

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.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 9

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.

Avatar

Level 9

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.