Enable Page Versioning on Save | Community
Skip to main content
August 30, 2021
Solved

Enable Page Versioning on Save

  • August 30, 2021
  • 3 replies
  • 1136 views

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?

 

 

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 Kishore_Kumar_

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.

3 replies

Kishore_Kumar_
Kishore_Kumar_Accepted solution
August 30, 2021

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.

Ravi_Pampana
Community Advisor
Community Advisor
August 30, 2021

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. 

Adobe Employee
August 31, 2021

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