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
--
ChengappaCB - 14 Jan 2008
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.
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