Show Poll result in same block/poll.tpl in ezflow frontpage

Author Message

Romeo Antony

Thursday 19 August 2010 8:55:36 am

I have put this topic two or 3 weeks back. But I have got a reply from Robin.

But I couldn't achive it. It was using ezjscore. I do not know how to do this even after I spend hours and hours.

in ezflow frontpage , I have added a block for poll

The site have 6 frontpage as top menus.

all these frontpage, contain a block for poll.(the same poll is used, in all frontpages in one of its blocks)

I didn't get a solution to display the poll result in same poll block(block/poll.tpl) when click on submit. To show like display the total and individual poll made on that poll question.

So when user click on submit, the poll question and option will be disappeared and only the results will be shown.

I have got two points for this solutions, in both case divert the poll to a full view template of a node where I put the poll results in that full view template

1. put a redirect in

<i>[Design-Extension]/templates/content/collectedinfo/my_infocollector_class.tpl</i>

{* redirect to another node *}

{set-block scope=root variable=redirect_to_node_id}2{/set_block}

2. using a hidden redirect field in infocollector/poll.tpl.

<input type="hidden" name="RedirecURL" value={"content/view/full/2"|ezurl} />

the above two solution will work if I use folder as the container for poll

If I use front page class as container and put poll as block , above solutions is not practical in the case if use frontpage -block- poll

But both cannot be used. Becz both solution will divert infocollector/poll.tpl to a node

for example

{set-block scope=root variable=245}2{/set_block}

or

<input name="RedirecURL" value={"content/view/full/245"|ezurl} />

Suppose I am submitting a poll from a home page which is a frontpage (poll is a block in frontpage).

Any help will be really appreciable to show the poll results in same block/poll.tpl

Anybody did this before, can anyone please help me. Just point me to a logic.

Thanks in Advance. Romeo.

Romeo Antony

Sunday 22 August 2010 2:55:38 am

Anyone please help ......

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 10:18:08
Script start
Timing: Jan 18 2025 10:18:08
Module start 'layout'
Timing: Jan 18 2025 10:18:08
Module start 'content'
Timing: Jan 18 2025 10:18:09
Module end 'content'
Timing: Jan 18 2025 10:18:09
Script end

Main resources:

Total runtime0.7449 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 589.3047152.6563
Module start 'layout' 0.00640.0028 741.960939.5078
Module start 'content' 0.00920.7342 781.4688460.3984
Module end 'content' 0.74340.0015 1,241.867212.0938
Script end 0.7449  1,253.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.5119160.0002
Check MTime0.00190.2561160.0001
Mysql Total
Database connection0.00100.136510.0010
Mysqli_queries0.685391.9943520.0132
Looping result0.00060.0767500.0000
Template Total0.706594.820.3532
Template load0.00350.465420.0017
Template processing0.703094.367420.3515
Template load and register function0.00010.017410.0001
states
state_id_array0.00140.186310.0014
state_identifier_array0.00160.208720.0008
Override
Cache load0.00290.3958320.0001
Sytem overhead
Fetch class attribute can translate value0.00100.132010.0010
Fetch class attribute name0.00170.233230.0006
XML
Image XML parsing0.00050.061410.0005
class_abstraction
Instantiating content class attribute0.00000.001540.0000
General
dbfile0.00180.2438160.0001
String conversion0.00000.002440.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs