Tags:
create new tag
, view all tags

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

Topic revision: r41 - 2011-09-08 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.