creating a contact form

Author Message

William Gourlie

Wednesday 12 May 2004 1:56:00 pm

I had run across a tutorial for creating a contact form, but it seemed to be outdated. I was wondering if there is something newer out that explains how to do this?

Mark Marsiglio

Friday 14 May 2004 10:25:10 am

I used a contact form that was in one of the demo sites to reverse engineer it. Sorry I did not have time to document the process, as it was some trial and error. However, I was able to get it working fine on my custom installation after following the steps that roughly included:
-Creating a new class called contact form with information collection on the appropriate datatypes (modeled this after the form in the demo site)
-Setting the email receiver in the site.ini.append
-modifying the template until it displayed properly

Overall, it was not as hard as I had suspected it would be. Now my editors can add a contact form anywhere on the site and change the title and the default information. The only problem is that they all email the same address with the results. There is a way around this, but I am not that good yet.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

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 18 2025 20:58:56
Script start
Timing: Jan 18 2025 20:58:56
Module start 'layout'
Timing: Jan 18 2025 20:58:56
Module start 'content'
Timing: Jan 18 2025 20:58:57
Module end 'content'
Timing: Jan 18 2025 20:58:57
Script end

Main resources:

Total runtime0.5790 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 589.0234152.6250
Module start 'layout' 0.00510.0023 741.648439.4453
Module start 'content' 0.00740.5706 781.0938521.7891
Module end 'content' 0.57800.0011 1,302.88288.1719
Script end 0.5790  1,311.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.5291160.0002
Check MTime0.00140.2354160.0001
Mysql Total
Database connection0.00080.146810.0008
Mysqli_queries0.542593.6815540.0100
Looping result0.00050.0840520.0000
Template Total0.553295.520.2766
Template load0.00190.329520.0010
Template processing0.551395.207720.2756
Template load and register function0.00010.022110.0001
states
state_id_array0.00100.164710.0010
state_identifier_array0.00090.162020.0005
Override
Cache load0.00150.2547110.0001
Sytem overhead
Fetch class attribute can translate value0.00050.090820.0003
Fetch class attribute name0.00080.138830.0003
XML
Image XML parsing0.00050.079620.0002
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00150.2523150.0001
String conversion0.00000.001440.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/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: 8
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs