Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Enable Page Versioning on Save

RG_AEM
Level 2
Level 2

Hi,

 

We have a group of Users that are requesting creating a Version of page on each page save of the changes in AEM sites? Is this even possible to version page on save OOTB ? If so what are the implications other than the obvious increase in repository size very quickly?

 

 

AEM Sites developer versioning
1 Accepted Solution
kishorekumar14
Correct answer by
Level 7
Level 7

Hi @RG_AEM ,

 

I don't think versioning on page save is available in OOTB. AFAIK, On activation, version will be created and we can also create version by clicking on create -> create version.

 

If you still want to do it (using pagemanager.createRevision / any other approach), ensure version purge is happening periodically.

View solution in original post

3 Replies
kishorekumar14
Correct answer by
Level 7
Level 7

Hi @RG_AEM ,

 

I don't think versioning on page save is available in OOTB. AFAIK, On activation, version will be created and we can also create version by clicking on create -> create version.

 

If you still want to do it (using pagemanager.createRevision / any other approach), ensure version purge is happening periodically.

View solution in original post

Ravi_Pampana
Community Advisor
Community Advisor

Hi,

 

It will definitely impact the size of the author instance and also we should remember that the version has limit of 5(default) and 30 days in OOtB (Day CQ WCM Version Manager)

 

If we are creating a version on every save then you need to increase the Max version number and implement a custom servlet/listener which will be triggered on dialog save and create a version. 

Bimmi_Soi
Community Advisor
Community Advisor

Hi @RG_AEM ,

 

There is versionManagerImpl class which would do the auto versioning.

Please go to system/console and search for version manager. It is out of the box bundle.

The versioning happens as per the configuration provided.

We can also write custom scheduler which would do versioning at specific intervals.

 

Hope this helps!!

Thanks