We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13765
    • 6 Posts
    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.
      • 3749
      • 24,544 Posts
      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.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 13765
        • 6 Posts
        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?
          • 13765
          • 6 Posts
          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
            • 3749
            • 24,544 Posts
            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.
              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting