Poll templates

Author Message

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.tp
3.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

M M

Monday 24 January 2005 6:20:45 am

hi all

Does anyone know how can i get the number of votes in a poll ?

Thanks in advance

Wenyue Yu

Monday 24 January 2005 7:26:46 am

Hi,

Could you try

fetch( content, collected_info_count, hash( object_id, $object.id ))

Regards,
wenyue

M M

Monday 24 January 2005 8:40:02 am

Thanks very much
But 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]

Thanks in advance

Wenyue Yu

Tuesday 25 January 2005 2:21:10 am

Hi,

$attribute.content.name

should be the question, while

$attribute.content.option_list

will be those different options.

Regards,
wenyue

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.