Difference: CommentPluginTemplateExample (1 vs. 2)

Revision 220 Mar 2010 - TWikiContributor

Line: 1 to 1
 

Template Example

Changed:
<
<
Example template topic for CommentPluginExamples:templatetopic.
>
>
Example template topic for CommentPluginExamples:templatetopic.
 
Line: 36 to 36
  Include generic comment templates:
Changed:
<
<
%TMPL:INCLUDE{"TWiki.CommentPlugin"}%
>
>
%TMPL:INCLUDE{"TWiki.CommentPlugin"}%
 

Revision 103 Dec 2006 - TWikiContributor

Line: 1 to 1
Added:
>
>

Template Example

Example template topic for CommentPluginExamples:templatetopic.

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

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

%TMPL:DEF{OUTPUT:example}%%POS:BEFORE%%TMPL:P{OUTPUT:examplethreadmode}%%TMPL:END%

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

%URLPARAM{"comment"}%

--- 
%TMPL:END%

Include generic comment templates:

%TMPL:INCLUDE{"%TWIKIWEB%.CommentPlugin"}%
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2010-2019 by LANIS