Checkbox/enum as info-collector

Author Message

Bjørn Kaarstein

Tuesday 22 July 2003 8:09:21 am

I've created a couple of mailforms earlier without problems, but this time I'm in need of some checkboxes in my mailform.

I was mighty surprised to find out this isn't supported by EZp, but after searching the forums, at least I found out how to create the checkboxes.

here: http://ez.no/developer/ez_publish_3/forum/developer/radio_buttons_within_forms

{let test=$node.data_map.cb}

{section name=Radio loop=array('value 1','Value 2')}
<input type="checkbox" name="ContentObjectAttribute_ezstring_data_text_{$test.id}" value="{$:item}">{$:item}</input>
{/section}
{/let}

My identifier for the enum field is cb, but this {let} doesn't have any function whatsoever. The section creates the checkboxes and all, but I can't get any information sent from them.

Anyone has an idea of how to use checkboxes in a mailform?

Regards Bjørn

Bjørn Kaarstein

Wednesday 23 July 2003 12:53:07 am

Well, this was solved in a rather ugly manner, but here we go..

I wrote an override for the node who was supposed to contain the mailform, and used an <iframe> to display an asp form from a w2k server... This works, but of course it would be preferred to have all functionality within EZ...

Regards Bjørn

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

Main resources:

Total runtime0.5992 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 589.0313152.6250
Module start 'layout' 0.00540.0028 741.656339.4609
Module start 'content' 0.00820.5896 781.1172424.5234
Module end 'content' 0.59780.0014 1,205.64068.1641
Script end 0.5992  1,213.8047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5559160.0002
Check MTime0.00130.2182160.0001
Mysql Total
Database connection0.00070.114310.0007
Mysqli_queries0.556592.8757520.0107
Looping result0.00050.0785500.0000
Template Total0.567494.720.2837
Template load0.00230.386720.0012
Template processing0.565194.300920.2825
Template load and register function0.00020.029010.0002
states
state_id_array0.00130.211010.0013
state_identifier_array0.00080.138720.0004
Override
Cache load0.00190.3146180.0001
Sytem overhead
Fetch class attribute can translate value0.00090.154510.0009
Fetch class attribute name0.00110.182420.0005
XML
Image XML parsing0.00010.016910.0001
class_abstraction
Instantiating content class attribute0.00000.001220.0000
General
dbfile0.00080.1323100.0001
String conversion0.00000.001540.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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 5

Time used to render debug report: 0.0001 secs