Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
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.