Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

How to change AEM page version change to whole numbers

Avatar

Level 2

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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@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

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

@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