Comment Plugin Template for Support Question Comments
This page defines a custom %STSTEMWEB%.CommentPlugin template to add comments to
SupportForum pages.
Input form definition:
%TMPL:DEF{PROMPT:support_comment}%<div class="commentPlugin commentPluginPromptBox">
<table border="0" cellpadding="9" cellspacing="0"><tr bgcolor="#EDF2F3"><td colspan="2">
<textarea %DISABLED% rows="%rows|14%" cols="%cols|90%" name="comment" class="twikiInputField" wrap="soft" onfocus="if(this.value=='%MESSAGE%')this.value=''" onblur="if(this.value=='')this.value='%MESSAGE%'">%MESSAGE%</textarea></td></tr>
<tr bgcolor="#EDF2F3"><td>Change status to: <select %DISABLED% name="Status">
<option %IF{"'%FORMFIELD{Status}%'='Asked'" then="selected='selected'"}% value="Asked">Asked question</option>
<option %IF{"'%FORMFIELD{Status}%'='Answered'" then="selected='selected'"}% value="Answered">Answered question</option>
<option %IF{"'%FORMFIELD{Status}%'='Unanswered'" then="selected='selected'"}% value="Unanswered">Closed unanswered</option>
</select></td>
<td align="right"><input %DISABLED% type="submit" value="%button|Add comment%" class="twikiButton" /></td></tr></table>
</div><!--/commentPlugin-->
%BR%%TMPL:END%
Output format definition: (specify encode="off" to preserve special characters, use encode="safe" to escape special characters (e.g. for verbatim text))
%TMPL:DEF{OUTPUT:support_comment}%%POS:BEFORE%
%URLPARAM{ "comment" encode="safe" }%
-- %WIKIUSERNAME% - %DATE%
%TMPL:END%
Include generic comment templates:
%TMPL:INCLUDE{"%SYSTEMWEB%.CommentPlugin"}%
Related: SupportForumMaintenance,
SupportForum,
AskSupportQuestion,
WebTopicEditTemplate,
SupportHeader,
CommentPlugin,
WebPreferences
--
TWiki:Main/PeterThoeny - 29 Dec 2008