Best way to set up multiple web form objects...

Author Message

Andrew K

Tuesday 03 April 2007 1:53:57 pm

I see a need growing with the site I'm working with for end users to create their own web forms for different things. I don't want them going in to create a new class every time they need a new form. Is there a way to make a web form class where a user chooses the fields and the notification email address they want?

I really don't want to have to make a new class every time they need a new form, nor do I want may class list to be filled with classes that are only used once.

Thanks.

--Andrew

André R.

Tuesday 03 April 2007 2:10:07 pm

Hi, there are two ways to solve this.
1. create some general forms for them that fit 99% of their needs.
Like some 'attend event form' where they can fill out the type of event, name , description, receiver and time. (email_receiver is the attribute that can be used as receiver)

2. Create a class group called Forms and let them create form classes there.
Then use a general form template that loops true the attributes and displays the information_collectors, this one overrides on the class group.
Note 1: class_group_override needs to be enabled in ini settings
Note 2: there is a bug that was fixed in 3.9.2 and 3.8.8 when using node_view_gui together with class_group overrides

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Karl Latiss

Wednesday 04 April 2007 4:49:50 am

Have a look at Form Builder from designIT (http://ez.no/products/partner_products/form_builder). It makes it <b>very</b> easy to set up and manage forms.

Atvert Systems
http://www.atvert.com.au

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 31 2025 01:17:01
Script start
Timing: Jan 31 2025 01:17:01
Module start 'layout'
Timing: Jan 31 2025 01:17:01
Module start 'content'
Timing: Jan 31 2025 01:17:01
Module end 'content'
Timing: Jan 31 2025 01:17:01
Script end

Main resources:

Total runtime0.0250 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 588.2578151.2266
Module start 'layout' 0.00610.0041 739.4844220.7188
Module start 'content' 0.01020.0133 960.2031997.8047
Module end 'content' 0.02360.0014 1,958.007833.9922
Script end 0.0249  1,992.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002710.8139140.0002
Check MTime0.00114.2192140.0001
Mysql Total
Database connection0.00145.438410.0014
Mysqli_queries0.002811.180530.0009
Looping result0.00000.060210.0000
Template Total0.00103.910.0010
Template load0.00072.959810.0007
Template processing0.00020.921410.0002
Override
Cache load0.00051.949710.0005
General
dbfile0.00197.459780.0002
String conversion0.00000.028640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs