Forums / Developer / Adding a standard form in a template

Adding a standard form in a template

Author Message

Nabil Alimi

Thursday 07 July 2005 12:34:56 am

Hi there,

In the site i'm working on, there must be a form (the same one) on many pages.
That is not compatible with the content creation process of Ezpublish I believe.

So I've been thinking of using an extension in order to save data directly into the database.

Is that possible ?

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

Łukasz Serwatka

Thursday 07 July 2005 1:03:33 am

"Everything is possible. The impossible just takes longer." ;)

Good tutorial about creating extensions is in documentation. You will need 2 views e.g. one display form, second storing data and display results.

http://ez.no/ez_publish/documentation/development/extensions/module/module_tutorial_part_1

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Pål J Didriksen

Thursday 07 July 2005 1:19:00 am

Hi!

I have recently created an extension that does processing of custom forms, so that you can assign a form button to do anything you are able to program in php :)

I'll upload the extension tonight or tomorrow.

Pål J.

Nabil Alimi

Thursday 07 July 2005 6:26:14 am

Woah. And I who was thinking that with just an "Insert into" and one or two "Select from" it will be ok. ^^'

I'll take a look at thhis. Thanks to you !

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

Pål J Didriksen

Monday 11 July 2005 4:07:23 am

Hi!

Here's the code for the extension I've been using:
http://ez.no/community/forum/developer/custom_form_action