Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Creating specific version number of page

Avatar

Level 9

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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/ass...

 

The APIs only allow us to specify

  • path of the resource
  • Version Label

Aanchal Sikka

View solution in original post

3 Replies

Avatar

Level 9

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.

Avatar

Level 10

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

Avatar

Correct answer by
Community Advisor

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/ass...

 

The APIs only allow us to specify

  • path of the resource
  • Version Label

Aanchal Sikka