Skip to main content
Level 3
Jan 11, 2017 7:35 PM UTC
Solved

How do I programically version a page?

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Rui_JAccepted solution
Level 3
Jan 11, 2017 8:44 PM UTC

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

2 replies

smacdonald2008
Level 10
Jan 11, 2017 8:19 PM UTC
Rui_JAuthorAccepted solution
Level 3
Jan 11, 2017 8:44 PM UTC

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

Translate