Hi everybody. I'm new to ProcessWire and I think it might be just what I need for some of my projects.
As a starter, I would like to write a small web application, and part of the application should be able to add new pages and change existing ones using the API (as opposed to the Admin interface). I think I have read all of the tutorials and a sizeable part of this forum, still I can't find out how such an application would look like in PW. Also, there was mention of a Wiki which I couldn't locate, either.
So, this is how I think such an application should work:
Let's say the web application manages a number of products.
The product directory lists all available products, i.e. it shows a list of the titles of each product page.
Klicking on a link named "new product" will open a page with an empty form. The user fills in all the fields in the form and then klicks on a button named "submit".
The server then validates the contents of all the fields, creates a new page (taking the title and the URL from the form), moves the contents of the fields in the form into the fields of the page and then shows the newly created product page.
Questions:
Is this how new pages are added when using the API (and not the admin interface)?
What do I call the page with the empty form and where in the hierarchy does it live? Is it even a page within the hierarchy, when it does not have any underlying data fields of its own?
Where does the completed form send (post) its content to, given that the page obviously does not exist yet?
Thanks in advance to anyone who can bring light into my darkness.