Friday 20 October 2006 1:53:39 am
Hi Claudia Kosny, Thanks a lot .But now i am doing one thing given below (ADMIN SECTION)
1 I created a class called poll
2 this class only consist of ezoption datatype
3 Create a folder named Poll
4 Under this folder I created a object like that
Who is your favourite player?(question)
1.Sachi Tendul kar
2.Sanath joysuriya
3.Mahendra sing Dhani Ther is one Add option butoon using that we can create as much as we wnat to add other name.
(USER SITE) In the user side it is displaying
Who is your favourite player
O Sachin
O Sanath Jaysuriya O Mahen Drasing Dhani from here user can only select only one answer.................
But Now my question is that i will allow the user to select multiple answes.so i edited the file given below
file name ezpublish-3.8.4/design/standard/templates/content/datatype/collect/ezoption.tpl
{default attribute_base=ContentObjectAttribute}
{let selected_id_array=cond( is_set( $#collection_attributes[$attribute.id] ), $#collection_attributes[$attribute.id].content, $attribute.content )} {section var=Options loop=$attribute.class_content.options} <input type="checkbox" name="{$attribute_base}_ezselect_selected_array_{$attribute.id}[]"
value="{$Options.item.id}" {section show=$selected_id_array|contains( $Options.item.id )}selected="selected"{/section}/>{$Options.item.name|wash( xhtml )} {/section}
{/let}
{/default}
pls give me some suggestion whether it is possible or not.
Thanks and regars Sangib
|