Online Forms

Author Message

David Foster

Wednesday 19 October 2005 2:27:06 am

As part of our intranet I want to include a variety of online forms to serve the internal business requirements of our organisation.
Can anyone help me to understand how to do this.
I know how to create and display forms in xhtml pages but am confused re ezpublish.

Arran Price

Wednesday 19 October 2005 3:09:31 pm

Hi David,
depending on the complexity of the forms and where you want the data stored you have at least a couple of options.
You can create normal forms with post/get and create code to handle them.

You can also create a new class type for your form to hold the details and have it stored in ezpublish. This can be quite an effective and easy way of going about things, but you may want to tailor the edit template to make the user experience nicer.

Using the new class approach is my recommendation depending on the complexity of your form (and what you are using it for).

Arran

Bruce Morrison

Wednesday 19 October 2005 5:31:50 pm

Hi David

We have developed a "form builder" addon to eZ publish that we hope to have available via the eZ online shop very soon.

It basically allows you to define forms and have them included in a content type via a datatype. Form results can be emailed and/or stored in the database where they can be exported in CSV format.

Let me know if this is something you might find useful or if you want to see it in action.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

David Foster

Thursday 20 October 2005 3:22:13 am

Thanks Arran I'll try out your suggestion.
Hi Bruce I would be interested in finding out more about your Form Builder. Keep me posted please.
My e-mail is
david.foster@southyorks.pnn.police.uk

Kåre Køhler Høvik

Thursday 20 October 2005 5:24:50 am

It might also be worth to take a look at the survey module : http://ez.no/community/contribs/applications/ez_survey

Kåre Høvik

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 04:15:34
Script start
Timing: Jan 31 2025 04:15:34
Module start 'layout'
Timing: Jan 31 2025 04:15:34
Module start 'content'
Timing: Jan 31 2025 04:15:35
Module end 'content'
Timing: Jan 31 2025 04:15:35
Script end

Main resources:

Total runtime0.7160 sec
Peak memory usage4,096.0000 KB
Database Queries67

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 588.0078151.1953
Module start 'layout' 0.00440.0026 739.203136.6172
Module start 'content' 0.00700.7081 775.82031,024.6563
Module end 'content' 0.71510.0009 1,800.476611.8828
Script end 0.7160  1,812.3594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.4193160.0002
Check MTime0.00130.1769160.0001
Mysql Total
Database connection0.00070.100410.0007
Mysqli_queries0.654691.4225670.0098
Looping result0.00070.0908650.0000
Template Total0.686895.920.3434
Template load0.00210.294920.0011
Template processing0.684795.619520.3423
Template load and register function0.00140.198510.0014
states
state_id_array0.00100.144110.0010
state_identifier_array0.00120.163020.0006
Override
Cache load0.00170.2386290.0001
Sytem overhead
Fetch class attribute can translate value0.00050.071240.0001
Fetch class attribute name0.00250.347370.0004
XML
Image XML parsing0.00590.820540.0015
class_abstraction
Instantiating content class attribute0.00000.001870.0000
General
dbfile0.00801.1113210.0004
String conversion0.00000.001140.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs