How to change AEM page version change to whole numbers

Avatar

Avatar

KaustubaTM

Avatar

KaustubaTM

KaustubaTM

05-05-2020

In AEM 6.4 when a page is published its version will increment by 0.1. My requirement is to increment the version by 1.0.

Please suggest best approach for this.

 

Thanks,

Kaustuba TM

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Suraj_Kamdi

MVP

Avatar

Suraj_Kamdi

MVP

Suraj_Kamdi
MVP

06-05-2020

@KaustubaTM 

First of all, you need to write the custom JobManager and  Jobconsumer to handle the page replication event.

You have to use VersionManger API to handle the page versions.

see the following useful links

1. https://docs.adobe.com/content/help/en/experience-manager-64/developing/platform/dev-offloading.html

2. https://www.programcreek.com/java-api-examples/?api=javax.jcr.version.VersionManager

 

Hope this will help..

 

Thanks & Regard,

Suraj Kamdi

Answers (0)