Creating a US quickpoll
The site is set up to display a poll on the home page. This document explains how to create new polls and deactivate existing ones. The instructions are pretty much the same as for the Canadian site, the embedded links point at the US management interface.
Quickpolls are implemented in such a way as to automatically display an item at the top level of the site with an id of quickpoll. Currently to disable quickpolls for both the us and canadian sites you must customize the /portal_skins/LH/macro_sidebar macro and comment out the quickpoll item, like so:
<!--<metal:block metal:use-macro="container/macro_sb_quickpoll/macros/quickpoll"/> -->
To reactivate the quickpoll simply delete the /portal_skins/custom/macro_sidebar object.
The poll that is displayed on the site is the one with an id of quickpoll in the root folder of the site. You must therefore rename the existing quickpoll to some other name and then name the one you want to turn on to quickpoll.
To edit the quickpoll question, you must edit the poll object in the quickpoll folder. This can only be done in the Zope Management Intreface. Simply delete the current question and add the new one.
Just
as with contests, you must specify the datafile where the quick poll
data is to be written. We'll use the convention "qp+ month +_ +
year.csv" as in qp03_2006.csv. The files are written the /usr/local/apache/sites/zope-lufthansa-experts.com/log/ directory. This is specified in the
/quickpoll/add_contestant macro, in the last line:
add_entry("qp03_2006.csv", entry, mail_params, settings=prod_settings)The
US polls are set up as contests and require an email address, while the
canadian polls are simply for gathering information. To create a
new poll simply copy an existing one. Once copied you should edit
the poll object.
Optionally you can edit index_html and thanks_html in the quickpoll folder to change either the intro page or the page that appears after the user responds.
Security Issues