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.

eZ debug

Timing: Jan 18 2025 16:16:22
Script start
Timing: Jan 18 2025 16:16:22
Module start 'layout'
Timing: Jan 18 2025 16:16:22
Module start 'content'
Timing: Jan 18 2025 16:16:23
Module end 'content'
Timing: Jan 18 2025 16:16:23
Script end

Main resources:

Total runtime0.6812 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 591.4063152.6094
Module start 'layout' 0.00580.0020 744.015639.4297
Module start 'content' 0.00780.6716 783.4453566.1172
Module end 'content' 0.67940.0018 1,349.562512.1953
Script end 0.6811  1,361.7578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4840160.0002
Check MTime0.00150.2239160.0001
Mysql Total
Database connection0.00070.106910.0007
Mysqli_queries0.632392.8350680.0093
Looping result0.00050.0750660.0000
Template Total0.655596.220.3277
Template load0.00180.264020.0009
Template processing0.653795.965620.3268
Template load and register function0.00020.023210.0002
states
state_id_array0.00080.123010.0008
state_identifier_array0.00070.104520.0004
Override
Cache load0.00150.2214390.0000
Sytem overhead
Fetch class attribute can translate value0.00050.072230.0002
Fetch class attribute name0.00090.125760.0001
XML
Image XML parsing0.00030.044230.0001
class_abstraction
Instantiating content class attribute0.00000.001260.0000
General
dbfile0.00060.0816100.0001
String conversion0.00000.000740.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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/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: 26
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs