Forums / Setup & design / Poll templates
M M
Monday 03 January 2005 3:54:34 am
Hi all,
It's the first time for me to add a poll into a website, so please i need your help
First i need to know the difference between the built in templates for the poll in these 3 paths 1.design/base/override/templates/full/poll.tpl 2.design/base/override/templates/line/poll.tp3.design/base/override/templates/embed/poll.tpl
Second i need to know the place of the built in template for the results page and the output page after collecting the information
Thanks in advance
Lazaro Ferreira
Monday 03 January 2005 9:13:51 am
Hi,
full,line and embed stand for three diferent views of the poll
ezp 3.4.x default template for builtin poll is at :
design/base/override/templates/collectedinfo/poll_result.tpl
Lazaro http://www.mzbusiness.com
Monday 24 January 2005 6:20:45 am
hi all
Does anyone know how can i get the number of votes in a poll ?
Wenyue Yu
Monday 24 January 2005 7:26:46 am
Could you try
fetch( content, collected_info_count, hash( object_id, $object.id ))
Regards,wenyue
Monday 24 January 2005 8:40:02 am
Thanks very muchBut i have another question, how can i get only the question from the question attribute in the poll [ as it contains the question and the different options of voting ... created by the data type option]
Tuesday 25 January 2005 2:21:10 am
$attribute.content.name
should be the question, while
$attribute.content.option_list
will be those different options.