This project is read-only.

Creating or Editing Page ContentItem in Code

Topics: Core, Writing modules
Feb 6, 2012 at 7: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.

Feb 6, 2012 at 7:52 PM

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