Creating and editing object on same page

Author Message

Piotr Switkowski

Tuesday 28 December 2004 2:30:32 pm

I need to collect people e-mail addresses. So I thought about creating a very simple class (just e-mail address). Because the class is so simple I do not want to have two clicks to add new address (ie. one to create new object and display edit page and the other one to save changes). Instead I would like user to simply type e-mail address in input field on main page and click "add me to the list" button. That should create object and save e-mail address to it.

Is there any way to do this in eZ ?

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 18:35:11
Script start
Timing: Jan 18 2025 18:35:11
Module start 'layout'
Timing: Jan 18 2025 18:35:11
Module start 'content'
Timing: Jan 18 2025 18:35:12
Module end 'content'
Timing: Jan 18 2025 18:35:12
Script end

Main resources:

Total runtime0.7755 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0088 588.0469152.6406
Module start 'layout' 0.00880.0043 740.687539.4766
Module start 'content' 0.01320.7605 780.1641398.6797
Module end 'content' 0.77370.0017 1,178.84388.1250
Script end 0.7754  1,186.9688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4891160.0002
Check MTime0.00150.1923160.0001
Mysql Total
Database connection0.00130.161410.0013
Mysqli_queries0.734094.6565460.0160
Looping result0.00050.0606440.0000
Template Total0.741395.620.3707
Template load0.00180.229920.0009
Template processing0.739595.363520.3698
Template load and register function0.00030.035110.0003
states
state_id_array0.00060.076310.0006
state_identifier_array0.00180.227720.0009
Override
Cache load0.00140.175550.0003
Sytem overhead
Fetch class attribute can translate value0.00050.061410.0005
Fetch class attribute name0.00120.153110.0012
XML
Image XML parsing0.00010.013810.0001
class_abstraction
Instantiating content class attribute0.00000.002810.0000
General
dbfile0.00080.1055100.0001
String conversion0.00000.001740.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 4
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs