Changes between Version 7 and Version 8 of PollMacro
- Timestamp:
- Apr 20, 2006, 11:24:09 AM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PollMacro
v7 v8 1 = Add polls to wiki pages =1 = Create polls based on tickets, or static arguments = 2 2 3 3 == Description == 4 4 5 The PollMacro lets poll questions be added to Trac pages.5 The PollMacro plugin adds polling to Trac. 6 6 7 The usage is very basic, arguments are separated by semi-colons, with the first argument being the question and the remainding arguments the choices:7 Usage: 8 8 9 {{{ 10 [[Poll(What do you think of the Poll macro?; Cool; Crap)]] 11 }}} 9 [[MacroList(PollMacro)]] 12 10 13 The macro stores the results of the poll, in a pickled form, in {{{/var/state/trac/polls}}} (this is set in the {{{polldir}}} variable at the top of the macro source). The 32-bit CRC of the poll name is used as the filename, and is stored under a directory with a name that is the 32-bit CRC of the project name.11 The poll data is stored in `/tmp` by default, but this can be overridden with the `base_dir` option in the `[poll]` section of TracIni. 14 12 15 13 Each voters name is displayed to the right of their choice.