3.2 -> Check box as information collector. How to modify the default value in a form ?

Author Message

laurent le cadet

Monday 24 November 2003 2:47:08 am

Hi,

I noticed it's possible to have now check box as information collector.
So the default value is send (0 or 1) when the check box is in a form.

What is the syntax to render a check box which allowed the user to change this value before sending the form ?

<form>
<input name="guide" type="checkbox" value="{????}">
</form> ?

This works fine but is that the best way ?

<input type="hidden" name="ContentObjectAttribute_id[]" value="19717" />
<input type="checkbox" name="ContentObjectAttribute_data_boolean_19717" />

Thanks

Laurent

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 19 2025 02:29:06
Script start
Timing: Jan 19 2025 02:29:06
Module start 'layout'
Timing: Jan 19 2025 02:29:06
Module start 'content'
Timing: Jan 19 2025 02:29:07
Module end 'content'
Timing: Jan 19 2025 02:29:07
Script end

Main resources:

Total runtime0.7572 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.0057 589.6484152.6875
Module start 'layout' 0.00570.0032 742.335939.5547
Module start 'content' 0.00890.7466 781.8906437.8359
Module end 'content' 0.75550.0016 1,219.72668.0625
Script end 0.7571  1,227.7891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4434160.0002
Check MTime0.00140.1824160.0001
Mysql Total
Database connection0.00110.139310.0011
Mysqli_queries0.714294.3269460.0155
Looping result0.00040.0540440.0000
Template Total0.724995.720.3624
Template load0.00190.255320.0010
Template processing0.723095.482920.3615
Template load and register function0.00010.013510.0001
states
state_id_array0.00080.104910.0008
state_identifier_array0.00070.089320.0003
Override
Cache load0.00150.2047160.0001
Sytem overhead
Fetch class attribute can translate value0.00070.088110.0007
Fetch class attribute name0.00070.098020.0004
XML
Image XML parsing0.00040.046510.0004
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00080.1033160.0000
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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/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: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs