Tags:
create new tag
view all tags

Question

I want to implement a feature where there will be two buttons (APPROVED and REJECTED) at the end of a topic using which the users (managers) can approve or reject the contents. When someone clicks the APPROVED (or REJECTED) button, all that is needed is the word APPROVED (or REJECTED) to be printed, along with the wikiname of the approver or rejector.

Yes. This is just a simple version of the CommentPlugin. Can this be implemented with some simple coding or does it require someone to write a plugin ? (I suppose that this can be implemented by creating a user template for the CommentPlugin but is there an easier way for guys like me who are not familiar with coding ?

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Windows 2003
Web server: Apache 1.3.39
Perl version: 5.008008 (cygwin)
Client OS: Windows XP
Web Browser: IE 6
Categories: Missing functionality

-- ChengappaCB - 14 Jan 2008

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.

SignaturePlugin claims to do something similar to what you are looking for, except that you want to have two buttons. I haven't tried it myself, though.

-- JohnFitzpatrick - 14 Jan 2008

Thanks John. It looks like every time I post a question, I stumble upon the answer. I found some explanation in the CommentPlugin page and managed to get it working like this:

But I would like to remove the textbox for approval. Just the "Approved" button would be nice (or make the text read-only, to prevent the approver from changing the text). Any suggestions? (The reject button can retain the textbox so that the rejection comment scan be posted.)


-- ChengappaCB - 14 Jan 2008

In the approved form of the comment template, change the input field from type="text" to type="hidden".

-- PeterThoeny - 19 Jan 2008

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 - 2008-01-19 - PeterThoeny
 
  • 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.