Creating or Editing Page ContentItem in Code

Topics: Core, Writing modules
Feb 6, 2012 at 6:47 PM

Is there a function to call to create a new page? and one to edit a page?

I want to automate creating of a tenant and adding a set of default pages. I see the post on Copy a page and it seems the easy answer is it can't be done. I'm hoping the trouble their is with retrieving the original page and creating a new page is easier.

Coordinator
Feb 6, 2012 at 6:52 PM

Of course it can be done. There are commands for it that you can use for inspiration.