Answer the question
In order to leave comments, you need to log in
How to create feedback for adding an element?
There is a site with books. It is necessary that the user could add books himself. That is, there is a page with a form in which there are all the necessary columns, the user fills them out and clicks add a book. And how to make it so that after submitting this form would create a new unpublished page, so that the administrator could only check the correctness of the data and click publish and that's it?
Answer the question
In order to leave comments, you need to log in
I'm not sure if this is provided by ModX, so I suggest a PHP solution:
1) a form is created for user input
2) a handler script is created, to which user input is sent with a POST request
The handler script connects to the database used by ModX (_db), and using INSERT adds a row with the given pagetitle, content, parent, etc. parameters to the _site_content table. (whatever you want) and, of course, published = 0 (page not published).
3) How to accept changes? Or find a newly created page (resource) in the tree and click the "Publish" checkbox, or write a script to easily accept / reject new unpublished pages.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question