PyLucid CMS Logo

poll

With the PyLucid poll plugin you can make some simple polls. Here a example poll:

Poll

↑ Is the poll pugin usefull?  #





↑ Features  #

↑ TODO  #

↑ limits anonymous votes  #

There is no way to really limit the votes from anonymous users!

We set a COOKIE on the client to mark him as "has vote", but the user can delete the cookie and vote again ;)

But you can limit the votes from the same IP address. On the other site you can block people sitting behind a proxy ;)

If the poll is not allowed to anonymous user, every user can really vote one time!

↑ code examples  #

Display the newest, active and voteable poll:

HTML+Django/Jinja
1
{% lucidTag poll %}

Note: It's not a good idea to put this into global page template, see: https://github.com/jedie/PyLucid/issues/53

Put a specific poll into cms page (Where x is the id of the poll):

HTML+Django/Jinja
1
{% lucidTag poll id=x %}

Put all existing polls into a page:

HTML+Django/Jinja
1
{% lucidTag poll.all_polls %}

You can filter the polls with hide_deactivated and/or not_voteable, e.g.:

HTML+Django/Jinja
1
{% lucidTag poll.all_polls hide_deactivated=True not_voteable=True %}

0 Kommentare für 'poll':
    Es existiert kein Kommentar für 'poll'
Kommentar hinterlassen
tag navi plugin | poll | pylucid

django-processinfo: 5.2 ms of 382.9 ms (1.4%)