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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
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.

2 Replies

Avatar

Correct answer by
Level 3

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