Deutsch English

jk_poll at Twitter

RSS-Feed

Comments for polls

05.07.2010
Category: jk_poll

A new feature in the upcoming version of jk_poll is to support comments with the help of the extension comments. There are 2 different options. Either you activate comments always or just after the user has voted in the RESULT view (see the examples). You can use the option "Use comments (Extension comments is required)" respectively "Use comments (Extension comments is required), but only on RESULT view" in the flexform or

plugin.tx_jkpoll_pi1.comments = 1

respectively

plugin.tx_jkpoll_pi1.comments_on_result = 1 

when using TypoScript.

In addition you have to configure the comments extension with

plugin.tx_comments_pi1.prefixToTableMap.tx_jkpoll_pi1 = tx_jkpoll_poll
plugin.tx_comments_pi1.showUidMap.tx_jkpoll_pi1 = uid

respectively

plugin.tx_comments_pi1.prefixToTableMap.tx_jkpoll_pi1 = tx_jkpoll_poll
plugin.tx_comments_pi1.showUidMap.tx_jkpoll_pi1 = uid_comments

when you only want to show the comments on the RESULT view. Here you can find an example for the first option and here an example for the second. To prevent Spam it is not possible to make new comments in these examples. Of course the form for adding a new comment can be shown easily.