How do I programically version a page? | Community
Skip to main content
New Participant
January 11, 2017
Solved

How do I programically version a page?

  • January 11, 2017
  • 2 replies
  • 1262 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

Rui_JAuthorAccepted solution
New Participant
January 11, 2017

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

smacdonald2008
New Participant
January 11, 2017