Question
I want to create a poll with my wiki users, and I thought about creating something like the appraisals on twiki plugins web. But I didn't find the code for them.
I copied PluginAppraisalHeader and PluginAppraisalStatistics, but I didn't find ExtensionAppraisalPoll template. Where is it?
Environment
--
GuilhermeGarnier - 07 Dec 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
The appraisal topics have a
%COMMENT{type="ExtensionAppraisalPoll" target="#GerryMander"}%. This is a custom template of the
CommentPlugin that defines the input form and the output format (table row.) It is defined in
UserCommentsTemplate.
--
PeterThoeny - 08 Dec 2007
Peter,
I created a UserCommentsTemplate topic on a web and inserted the ExtensionAppraisalPoll definition. After that, I created another topic on the same web with the following code:
%INCLUDE{PluginAppraisalHeader}%
#GerryMander
%INCLUDE{PluginAppraisalStatistics}%
%COMMENT{type="ExtensionAppraisalPoll" target="#GerryMander"}%
After saving this topic, the poll appeared. I selected my votes and clicked "submit", but I got an error message saying
"No such template def TMPL:DEF{OUTPUT:ExtensionAppraisalPoll}". What am I doing wrong?
--
GuilhermeGarnier - 14 Dec 2007
You probably need to create the UserCommentsTemplate topic in the TWiki web.
--
PeterThoeny - 15 Dec 2007
In your
UserCommentsTemplate, define the
%TMPL:DEF{PROMPT:ExtensionAppraisalPoll}% and
%TMPL:DEF{OUTPUT:ExtensionAppraisalPoll}%
--
PeterThoeny - 15 Dec 2007
OK, I forgot
%TMPL:DEF{OUTPUT:ExtensionAppraisalPoll}%. Now it's working, thank you very much.
--
GuilhermeGarnier - 17 Dec 2007