I have an odd request, but it’s the only way I can think of to solve a problem I’m having. I have a customer that wants to create a form on the website where users can submit stories.
Once the user fills out the form with their story, it needs to send an email to the site admin, then he wants to be able to log into modx to either publish or delete the submitted story.
I’m currently using modx Revolution.
I was thinking I’d use spform to gather the data, then have the form send an email to the admin letting them know a new story has been posted. After that, my idea was to post the form data as a new subpage (set to unpublished) so the admin can login and do whatever with it. Then I can output the stories via getResources.
The problem is that I’m not sure how to go about saving the spform data as a new subpage. Any help on this would be greatly appreciated. Or if you can think of a better why, do tell!
Thanks eveyone.
I’m afraid SPForm is not a good candidate for this. It’s designed to be just a quick and easy contact form -- nothing more.
eForm and eForm2DB would be more appropriate if you’re using Evolution. In Revolution, FormIt would the right tool.
Cool, formit does look like the better choice. Any ideas how to use the hooks to save the form data as a new unpublished page?
Quote from: jcanon at Sep 23, 2010, 12:39 PM
I think I found my answer now that I’m looking for solutions with formit rather than spform!
http://modxcms.com/forums/index.php/topic,54204.msg313114.html#msg313114
FormIt is a great choice for what you’re doing. It’s what I would use.