Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-04-12 04:13:31

lozmatic
Member
From: Melbourne, Australia
Registered: 2006-08-27
Posts: 259
Website

[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

#2 2008-04-12 07:44:54

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,726
Website

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

#3 2008-04-12 15:02:58

lozmatic
Member
From: Melbourne, Australia
Registered: 2006-08-27
Posts: 259
Website

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

#4 2008-04-12 16:14:42

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,726
Website

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

Board footer

Powered by FluxBB