Set MentometerManager Properties
The configuration file
escenic-config/com/escenic/poll/MentometerManager.properties
can be used to set the following properties:
checkCookieEnabled
-
This property is set to
false
by default, which means that all poll visitors can vote an unlimited number of times. If you setcheckCookieEnabled
totrue
, then:-
Visitors are only allowed to vote if they have cookies enabled in their browser.
-
Visitors are only allowed to vote once in any one poll (assuming that the template code checks the
mode
request attribute - see Creating Poll Templates for details).
It may be useful to leave this property set to
false
during development, but for production purposes you will usually want to set it totrue
.To set this property to true, add the following line to
MentometerManager.properties
:checkCookieEnabled=true
-
fieldNameAnswer
-
You can use this property to set the prefix to be used for poll alternative field names. By default it is set to
svar
, so that the alternative fields in your poll content types must be calledsvar1
,svar2
,svar3
etc. (see Creating a Poll Content Type). If you want to set the prefix to something that is more meaningful to you (alt
, for example), add the following line toMentometerManager.properties
:fieldNameAnswer=alt
fieldNameSum
-
You can use this property to set the name of the article field for saving the sum of the answers. By default it is set to
sum
. If you want to set the field name to something that is more meaningful to you (total
, for example), add the following line toMentometerManager.properties
:fieldNameSum=total
fieldNameCorrectAnswer
-
You can use this property to set the name of the article field for holding the correct answer for use in a competition. By default it is set to
correctAnswer
. If you want to set the field name to something that is more meaningful to you (rightAnswer
, for example), add the following line toMentometerManager.properties
:fieldNameCorrectAnswer=rightAnswer
howManyAlternatives
-
You can use this property to set the maximum number of poll alternative field names. The prefix of this field names should be
fieldNameAnswer
and the suffix for those should start with a number from 1 to the value ofhowManyAlternatives
. By default it is set to20
. If you want to set another value (10
, for example), add the following line toMentometerManager.properties
:howManyAlternatives=10
If
escenic-config/com/escenic/poll/MentometerManager.properties
does not already exist, then copy
MentometerManager.properties
from
escenic-home/engine/plugins/poll/misc/siteconfig/com/escenic/poll
to
escenic-config/com/escenic/poll/
and set the required properties.