How do I programically version a page? | Community
Skip to main content
Level 3
January 11, 2017
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
January 11, 2017

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

2 replies

Rui_JAuthorAccepted solution
Level 3
January 11, 2017

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

Translate
smacdonald2008
Level 10
January 11, 2017