Forums / General / Inline poll
Majkl Najt
Tuesday 17 August 2004 10:33:16 am
Hi!
I want to include poll in page_layout template.In demo site, there is only way to use poll on full page.
How can I include to view poll as inline page.
Thanks for your help.
Majkl
Björn Dieding@xrow.de
Tuesday 17 August 2004 1:02:07 pm
the trick is simple
just submit the same data like you would when using the full template
I would create a seperate view for this item
and then I would include it over the node_view_gui
Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs Looking for hosting? http://hostingezpublish.com ----------------------------------------------------------------------------- GMT +01:00 Hannover, Germany Web: http://www.xrow.com/
Sunday 22 August 2004 3:36:17 am
Can you provide some sample how to do this?
I am not so familiar with ezPublish, so I could make something from your suggestion.
Tim Dickinson
Monday 23 August 2004 6:08:27 am
I would also quite like to be able to do this.
Is there a tutorial that I have missed, or could someone explain a little more fully for those of us with a little less understanding?
Tim
http://www.AdBalance.com - Ad network news and reviews http://www.DevPublisher.com - Website publisher guides, tools and news http://www.AudioMelody.com - Make better music
Bjarte Lunde
Wednesday 01 September 2004 2:07:06 am
Hi.. This is the code i'm using to display the poll on the frontpage of my site.
{let poll_list=fetch( content, list, hash( parent_node_id, 86, sort_by, array( array( published, false() ) ), limit, 1 ) ) } <div class="class-poll"> <h1>{$poll_list[0].name|wash()}</h1> <div class="attribute-short"> {attribute_view_gui attribute=$poll_list[0].object.data_map.description} </div> <form method="post" action={"content/action"|ezurl}> <input type="hidden" name="ContentNodeID" value="{$poll_list[0].node_id}" /> <input type="hidden" name="ContentObjectID" value="{$poll_list[0].object.id}" /> <input type="hidden" name="ViewMode" value="full" /> <div class="content-question"> {attribute_view_gui attribute=$poll_list[0].object.data_map.question} </div> {section show=is_unset( $versionview_mode )} <input class="button" type="submit" name="ActionCollectInformation" value="Vote" /> {/section} </form> <div class="content-results"> <div class="attribute-link"> <p><a href={concat( "/content/collectedinfo/", $poll_list[0].node_id, "/" )|ezurl}>{"Result"|i18n("design/base")}</a></p> </div> </div> </div> {/let}
Arash Molavi
Tuesday 19 October 2004 5:50:57 am
Well that doesnt work for me:S
[well now it does, didnt check the node] SOrry!