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

How do I programically version a page?

Avatar

Level 3

Hi,  

  So how do I programically version a page? Basically what I want is regardless of the page has been modified or not, the page should create a new version when I execute the code.

  I have tried VersionManager.checkin(path), but it doesn't work.

 

Thanks.

1 Accepted Solution

Avatar

Correct answer by
Level 3

Thanks. smacdonald2008. PageManager.createRevision("/path") does the trick.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 3

Thanks. smacdonald2008. PageManager.createRevision("/path") does the trick.