Blog Comment Plugin Template definitions

category

Bullet item added immediately before anchor. The input field width is passed with variable inputsize, for example:
%COMMENT{type="category"}%

%TMPL:DEF{PROMPT:category}%
<fieldset><legend>Create new category</legend>
<table><tr><th>Name:<td><input class="twikiInputField" name="category_name" id="category_name" type="text" size="16" />
<tr><th>Description:<td><input class="twikiInputField" name="category_desc" id="category_desc" type="text" size="72" />
<tr><td><td><input %DISABLED% type="submit" value="%button|Add item%" class="twikiButton" /></table></fieldset>%TMPL:END%
%TMPL:DEF{OUTPUT:category}%   * [[%URLPARAM{"category_name"}%]] - %URLPARAM{"category_desc"}% <i>([[%URLPARAM{"category_name"}%Summary][summary]])</i>%POS:BEFORE%
%TMPL:END%

blogpost

%TMPL:DEF{PROMPT:blogpost}%%TMPL:P{promptbox}%%TMPL:END%

%TMPL:DEF{FORM:blogpost}%
#BlogPostPrompt
<form method="post" action="%SCRIPTURL{save}%/%BASEWEB%/%BASETOPIC%Comments" enctype="application/x-www-form-urlencoded" name="blogpostcomment" id="blogpostcomment">
<input type="hidden" name="redirectto" value="%BASEWEB%.%BASETOPIC%" />
<input type="hidden" name="topicparent" value="%TOPIC%" />
%COMMENTPROMPT%
</form>
%TMPL:END%

%TMPL:DEF{OUTPUT:blogpost}%%POS:BEFORE%%TMPL:P{OUTPUT:blogpostthreadmode}%%TMPL:END%

%TMPL:DEF{OUTPUT:blogpostthreadmode}%%POS:BEFORE%
%GMTIME{"#CommentDate$epoch"}%
%WIKIUSERNAME% - %DATE%:

%URLPARAM{"comment"}%

--- 
%TMPL:END%

Include generic comment templates:
%TMPL:INCLUDE{"%TWIKIWEB%.CommentPlugin"}%
Topic revision: r2 - 04 Apr 2008, ColasNahaboo
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Colas? Send feedback