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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 00:31:24
Script start
Timing: Jan 19 2025 00:31:24
Module start 'layout'
Timing: Jan 19 2025 00:31:24
Module start 'content'
Timing: Jan 19 2025 00:31:26
Module end 'content'
Timing: Jan 19 2025 00:31:26
Script end

Main resources:

Total runtime1.3199 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 587.9375152.6250
Module start 'layout' 0.00540.0027 740.562539.4453
Module start 'content' 0.00811.3102 780.0078608.4219
Module end 'content' 1.31840.0014 1,388.429716.1563
Script end 1.3198  1,404.5859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2503160.0002
Check MTime0.00140.1065160.0001
Mysql Total
Database connection0.00090.065910.0009
Mysqli_queries1.255695.1313650.0193
Looping result0.00080.0580630.0000
Template Total1.284497.320.6422
Template load0.00220.165620.0011
Template processing1.282297.146320.6411
Template load and register function0.00010.006510.0001
states
state_id_array0.00110.082410.0011
state_identifier_array0.00150.113220.0007
Override
Cache load0.00190.1404290.0001
Sytem overhead
Fetch class attribute can translate value0.00150.115530.0005
Fetch class attribute name0.00150.111580.0002
XML
Image XML parsing0.00150.113330.0005
class_abstraction
Instantiating content class attribute0.00000.0014100.0000
General
dbfile0.00100.0741300.0000
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs