Problems with the poll functionality

Problems with the poll functionality

Friday 13 February 2004 4:56:00 am - 3 replies

Modified on Friday 13 February 2004 6:29:21 am by Tore Skobba

Author Message

Wenyue Yu

Friday 13 February 2004 6:33:34 am

Hi,

Answers to part of your question.

To disable email sending change [EmailSettings] in collect.ini.append as following:
[EmailSettings]
SendEmail=disabled

Add and change following settings to suit your needs in collect.ini.append:
[CollectionSettings]
CollectAnonymousDataList[Poll]=disabled/enabled
CollectionUserData=multiple/unique/overwrite

I can't find content_object in poll_result.tpl, could you post your poll_result.tpl?

Regards,
wenyue

Tore Skobba

Monday 16 February 2004 5:10:24 am

Hi

Thanks for the help, seems as I was a bit fast on the post a forum message, totally forgot about settings, only looked at the actual template code. Everything works fine now, except that I still get the:

"Unknown template variable 'content_object' in namespace ''"

Which is strange since I have simply copied and pasted the template code from the EZ pre installed site designs.

The line generating the error is this (the one in the middle):
12: {attribute_view_gui attribute=$node.object.data_map.option}
13: {section name=ContentAction loop=$node.object.content_action_list show=$content_object.content_action_list}
14: <input class="button" type="submit" name="{$ContentAction:item.action}" value="Vote" />

content_object is not defined anywhere before line 13.
Cheers
Tore

Wenyue Yu

Monday 16 February 2004 7:47:03 am

Hi,

There is something wrong with the template. Change $content_object to $node.object.

Regards,
wenyue

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.