cross
New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists

User Templates for CommentPlugin

This topic does not get overwritten when upgrading Foswiki so here we can safely put foswiki.org unique CommentPlugin templates.

Try not to use COMMENT in a way that encourage threadmode instead of refactoring.

Remember to put the definitions in verbatim to avoid this topic becoming a XSS attack vector


bulletbelow

Bullet item added immediately after the COMMENT tag. Used to add bullets at the top of a list. The input field width is passed with parameter inputsize, for example:
%COMMENT{type="bulletbelow" inputsize="20"}%

%TMPL:DEF{PROMPT:bulletbelow}%<input class="foswikiInputField" name="bullet_below_item" id="bullet_below_item" type="text" size="%inputsize|60%" value="%URLPARAM{"bullet_below_item"}%" />&nbsp;<input %DISABLED% type="submit" value="%button|Add item%" class="foswikiButton" />%TMPL:END%
%TMPL:DEF{OUTPUT:bulletbelow}%   * %URLPARAM{"bullet_below_item" encode="off"}%%POS:AFTER%
%TMPL:END%

%TMPL:DEF{returnpromptboxtab}%
<input type="hidden" name="redirectto" value="%BASEWEB%.%BASETOPIC%?tab=discuss" />
%TMPL:P{promptbox}%
%TMPL:END%
%TMPL:DEF{PROMPT:returntab}%%TMPL:P{returnpromptboxtab}%%TMPL:END%
%TMPL:DEF{OUTPUT:returntab}%%POS:BEFORE%%TMPL:P{OUTPUT:threadmode}%%TMPL:END%

-- KennethLavrsen - 30 Sep 2009


Topic revision: r2 - 14 Jan 2012, GeorgeClark - This page was cached on 14 Aug 2018 - 19:53.

This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback