I'm trying to create a poll, but..

Author Message

K259

Wednesday 17 August 2005 1:43:19 pm

I've created a class poll with attributes: title, description, selection1, selection2, selection3, selection4. I have also created content of this class in the structure, filled in text in title, description, and created 3 options pr. selection..

The problem is, I'm not able to list the options as option buttons and the labels of the selections in the template..

Does anyone know what I do wrong?

<form method="post" action={"content/action"|ezurl}>
<h1>{$node.name}</h1>
<br>
{attribute_view_gui attribute=$node.object.data_map.description}

{let myattribute=$node.data_map.poll}
{section name=Radio loop=array(1,2,3)}
<input type="radio" name="ContentObjectAttribute_ezstring_data_text_{$myattribute.id}" value="{$:item}">{$:item}</input>
{/section}
{/let}
<br>
{section name=ContentAction loop=$content_object.content_action_list show=$content_object.content_action_list}
    <div class="block">
        <input type="submit" name="{$ContentAction:item.action}" value="{$ContentAction:item.name}" />
    </div>
{/section}

<input type="hidden" name="ContentNodeID" value="{$node.node_id}" />
<input type="hidden" name="ContentObjectID" value="{$content_object.id}" />
<input type="hidden" name="ViewMode" value="full" />

</form>

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 04:32:47
Script start
Timing: Jan 19 2025 04:32:47
Module start 'layout'
Timing: Jan 19 2025 04:32:47
Module start 'content'
Timing: Jan 19 2025 04:32:47
Module end 'content'
Timing: Jan 19 2025 04:32:47
Script end

Main resources:

Total runtime0.6571 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.0055 590.2891152.6250
Module start 'layout' 0.00550.0031 742.914139.4453
Module start 'content' 0.00860.6469 782.3594406.1094
Module end 'content' 0.65550.0015 1,188.46888.1563
Script end 0.6571  1,196.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4660160.0002
Check MTime0.00130.1963160.0001
Mysql Total
Database connection0.00080.121410.0008
Mysqli_queries0.623394.8536460.0135
Looping result0.00030.0507440.0000
Template Total0.629495.820.3147
Template load0.00160.250020.0008
Template processing0.627795.526520.3138
Template load and register function0.00010.017810.0001
states
state_id_array0.00070.111010.0007
state_identifier_array0.00070.104920.0003
Override
Cache load0.00130.194870.0002
Sytem overhead
Fetch class attribute can translate value0.00060.086610.0006
Fetch class attribute name0.00060.093010.0006
XML
Image XML parsing0.00010.013110.0001
class_abstraction
Instantiating content class attribute0.00000.000810.0000
General
dbfile0.00070.1071100.0001
String conversion0.00000.001040.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
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 5
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs