Creating specific version number of page | Community
Skip to main content
New Participant
October 16, 2015
Solved

Creating specific version number of page

  • October 16, 2015
  • 3 replies
  • 816 views

I am trying to create a specific version number of the page. Current version of the page is 2.6. On the side kick I have entered following in versioning tab

Label: 5

Comment: Versioning whole number

I expect to see Version 5 created, but I see version 2.7 is created. Why it is not taking the version I entered and going to next in the series.

Is there any configuration? How do I have whole integers 1, 2, 3, 4, .. as version no decimals when it is created.

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 aanchal-sikka

Version numbers are calculated from the base on top of which you are creating a version.

Example: if your current version is 2.6, then the new version would be 2.7

 

https://developer.adobe.com/experience-manager/reference-materials/6-5/javadoc/com/adobe/granite/asset/api/AssetVersionManager.html

 

The APIs only allow us to specify

  • path of the resource
  • Version Label

3 replies

aanchal-sikka
aanchal-sikkaAccepted solution
New Participant
December 6, 2023

Version numbers are calculated from the base on top of which you are creating a version.

Example: if your current version is 2.6, then the new version would be 2.7

 

https://developer.adobe.com/experience-manager/reference-materials/6-5/javadoc/com/adobe/granite/asset/api/AssetVersionManager.html

 

The APIs only allow us to specify

  • path of the resource
  • Version Label
Aanchal Sikka
MshajiAuthor
New Participant
October 16, 2015

I think label is different from version, I couldn't find any documentation on how to configure version numbers.

Is there any way we can format version numbers?

/bin/wcmcommand createVersion has parameters to set label and comment, there is no parameter to set version number.

smacdonald2008
New Participant
October 16, 2015

Typically a page is automatically assigned a version when you activate it. However - it also seems that the version is specified by entering a label value - as shown here:

[img]Labelversion.png[/img]

You may be interested in reading these topics:

http://docs.adobe.com/docs/en/cq/current/deploying/configuring_cq.html (this contains some page version information). 

http://docs.adobe.com/docs/en/cq/current/deploying/version_purging.html#Version%20Manager