Forums / Developer / Poll not displayed in Exponential 3.4.1

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Poll not displayed in Exponential 3.4.1

Author Message

Jack Rackham

Wednesday 25 August 2004 1:14:03 am

I have come across a few problems when I moved my EZ site from a server running 3.3 to a server running Exponential 3.4.1. The following code is my code for fetching a poll in a pagelayout template. This code works for 3.3 but not in Exponential 3.4.1 In Exponential 3.4.1 it manages to fetch to name of the poll but the poll is not displayed. Can someone help me?

{let poll_list=fetch( content, list, hash( parent_node_id, 95, sort_by, array( array( published, false() ) ), limit, 1 ) ) }

<h3>{"Undersøkelse"|i18n("design/news/layout")}</h3>
<div class="poll">
<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}" />

<p>{$poll_list[0].name}</p>
{attribute_view_gui attribute=$poll_list[0].object.data_map.option}
{section name=ContentAction loop=$poll_list[0].object.content_action_list show=$poll_list[0].object.content_action_list}
<input class="button" type="submit" name="{$ContentAction:item.action}" value="Vote" />
{/section}

<a href={concat( "/content/collectedinfo/", $poll_list[0].node_id, "/" )|ezurl}>Result</a>
</form>

<a href={concat( "/content/view/full/", $poll_list[0].parent_node_id, "/" )|ezurl}><h4>View all polls</h4></a>
</div>

{/let}