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.