We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
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 have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list 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:
Topic revision: r5 - 19 Jan 2008 - 01:19:18 - PeterThoeny
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback