x
 
Create New Page
 View Previous Changes    ( Last updated by Leevi Graham )

Entry Poll

Question:

How can I have a poll linked to an entry, so that people can comment on the poll?

Answer:

There are two poll modules currently available for ExpressionEngine LG Polls (currently in beta) and EE Poll.

Option 1: LG Polls:

LG Polls is an advanced ajax enabled polling module for ExpressionEngine currently in beta.

Included in the package is a module and two extensions which integrate LG Polls into the ExpressionEngine administration. Polls are created using the standard weblog entry publish field and can therefore be managed like all other weblog entries.

LG Polls is extremely customizable via templates and css styles and there are tons of options for you to choose to ensure that LG Polls runs the way you wanted.

Feature Summary:

* Create polls as weblog entries allowing polls to be manipulated like standard weblog entries
* Create relationships between polls and other entries using ExpressionEngine relationships
* AJAX enabled poll submission (optional)
* Customise poll templates and results using standard ExpressionEngine templates
* Restrict polls by member group
* Poll details stored in an easy to use custom field type
* Display polls as CSS & xHTML or Pie Charts

Download LG Polls and read the documentation.

Option 2: EE Poll:

Download the EE Poll Module. You can find the link at our Modules list or the forum.

Create a custom field. Call it pollid (do not call it poll, you’ll break things, aren’t I the clever one? :) ). Set it to text formatting: none.

Create a new poll. Grab the id (you can get that from the view polls option in the module)

Create a new entry, enter the poll ID into your custom field.

Now, in your templates (I put mine in index, and comments) add this:

{if pollid != ""}
{exp
:eepoll poll_id="{pollid}"}
{poll}
{
/exp:eepoll}
{
/if}


inside of the {exp:weblog:entries} container. I put mine right above {body} for now.

All done. =)

Category:Tips Category:Modules -> EEPoll

Categories: