Monday 07 June 2004 2:33:14 am
Hello I`ve manually setup my poll in ez publish 3.3-4 and doesn`t work :(
1. I`ve create a poll class
2. I copy collect.ini from ez publish "news" installation 3. I use copy of default template for poll When i vote data are store only in one table "ezinfocollection" - why? Table ezinfocollection_attribute is empty? I don`t know why second table isn`t updated? sorry for my bad english.
[InfoSettings]
# The default information collection type
Type=form
# Matches class id or identifier to information collection type
TypeList[]
TypeList[poll]=poll
TypeAttribute=collection_type
[EmailSettings]
SendEmail=enabled
# Matches class id or identifier to information collection type
SendEmailList[poll]=disabled
# Which attribute to look for in the object to determine
# if an email should be sent.
# If found the setting will override all other settings.
SendEmailAttribute=collection_email
[CollectionSettings]
CollectAnonymousDataList[Poll]=enabled
CollectionUserData=unique
and templates
{set-block scope=global variable=title}
{'Poll %pollname'|i18n('design/standard/content/poll',,hash('%pollname',$node.name))}
{/set-block}
<h1>{'Poll results'|i18n( 'design/standard/content/poll' )}</h1>
{section show=$error}
{section show=$error_anonymous_user}
<div class="warning">
<p>{'Anonymous users are not allowed to
vote on this poll, please login.'|i18n('design/standard/content/poll')}</p>
</div>
{/section}
{section show=$error_existing_data}
<div class="warning">
<p>{'You have already voted for this poll.
'|i18n('design/standard/content/poll')}</p>
</div>
{/section}
{/section}
<h2>{$node.name|wash}</h2>
{section loop=$object.contentobject_attributes}
{section show=$:item.contentclass_attribute.is_information_collector}
<h3>{$:item.contentclass_attribute.name}</h3>
{attribute_result_gui view=count attribute=$:item}
{section-else}
{section show=$attribute_hide_list|contains($:item.contentclass_attribute.identifier)|not}
<h3>{$:item.contentclass_attribute.name}</h3>
{attribute_view_gui attribute=$:item}
{/section}
{/section}
{/section}
<br/>
{"%count total votes"|i18n( 'design/standard/content/poll' ,,
hash( '%count', fetch( content, collected_info_count, hash( object_id, $object.id ) ) ) )}
|