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?

  • January 11, 2017
  • 2 replies
  • 1266 views

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.
Best answer by Rui_J

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

2 replies

smacdonald2008
Level 10
January 11, 2017
Rui_JAuthorAccepted solution
Level 3
January 11, 2017

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