Create a new page from within the database

Permalink
I have a user that would like to add new pages without actually going through the process. I am generating the html they use for the pages from a php form. I would like to be able to take this html and create the new page without them having to do anything other than fill out the form and click a button. Is this something that I can do? I am thinking that by editing the correct database tables I should be able to place a new page. I am just unsure of which tables I would need to add to. any assistance would be appreciated.

 
jordanlev replied on at Permalink Reply
jordanlev
If you are generating HTML from a form already, then you should not be using a CMS like Concrete5. If you do, however, want to use Concrete5, then the way to do this is to build a theme with your HTML (look through the documentation to learn how to do this), then you can use the "Composer" feature to allow your user to add new pages from the dashboard.
elispop122003 replied on at Permalink Reply
The purpose of the form is to allow my client to create a page based on a template that is created. I have a custom theme, the user does not want to view code. so I have made a form for them to use. The form creates html code and saves it to a txt file. I can then manually copy that code into an html block in a new page and it works. I am just trying to skip having them do the copy and paste if I can do it automatically from within the php ajax call.
jordanlev replied on at Permalink Reply
jordanlev
Ok, I think I understand better. It sounds like you've recreated concrete5's block functionality with your custom form. What you should do instead is create your own block type instead of using the HTML block. Check out the Designer Content addon (http://www.concrete5.org/marketplace/addons/designer-content/... ) -- it does this for you.

-Jordan