Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[request] From web form to article
I use zem_contact_reborn to allow people to email me from an online form but would like to do something a bit different.
I would like to allow users to submit info via a form that is written in the database as an article. The form’s fields would have to coincide with the existing ones, including the custom ones. But not all would be required and it would be good to have the option for hidden values too. Being able to submit an image would be fantastic too.
The submitted article would be saved in a section call something along the lines of ‘form_submitted’ as a draft. An admin would then be able to edit the article and push it live. Or delete it.
I’m thinking of setting up a section where I post profiles about shops (name, address, description, google map, etc…) and would love to avoid the data entry work of having to copy and paste from an email into an article.
I hope all his makes sense :)
Offline
Re: [request] From web form to article
Lawrence, take a look at mem_moderation and mem_form (which is similar to zcr) and the associated plugins that belong to it. That will do what you want.
Users submit a form that gets submitted to a moderation queue with its own review area in the back-end. A moderator can then review and correct the details as necessary, accept or reject the submission. When submitted it becomes an article. By passing hidden fields in your form, you can automatically pre-assign it to a particular section or category. Custom fields work too.
The most recent development versions on manfre’s svn site also add a few new tricks such as correct field format validation, nice error reporting and are supposed to play nicely with glz_custom_fields which provides more complex custom field entry possibilities. I use this for instance to allow people to submit events for an events calendar making sure that the date is provided in the correct format, that the end date is after the start date etc.
TXP Builders – finely-crafted code, design and txp
Offline
Re: [request] From web form to article
Looks exactly like what I need :)
It’s been in beta since 2005. I hope it will work.
Cheers,
loz
Offline
Re: [request] From web form to article
yes, I’ve just set up one with the development version and in my case it works better than the earlier version…
TXP Builders – finely-crafted code, design and txp
Offline