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