Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: CentOS 4.4
Web server: Apache 2.0.52
Perl version: 5.8.5
Client OS: Ubuntu 7.10
Web Browser: Firefox 2.0.0.11
Categories: Plugins

-- GuilhermeGarnier - 07 Dec 2007

Answer

ALERT! 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

Change status to:
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2007-12-17 - GuilhermeGarnier
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.