(1 vs. 2) CommentPluginTemplateExample < Sandbox < TWiki

Home - this site is powered by TWiki(R)
Sandbox  CommentPluginTemplateExample (1 vs. 2)

Changes | Index | Search | Go

 <<O>>  Difference Topic CommentPluginTemplateExample (2 - 2010-03-20 - TWikiContributor)
 

Template Example

Changed:
<
<
Example template topic for CommentPluginExamples:templatetopic.
>
>
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:

Changed:
<
<
%TMPL:INCLUDE{"TWiki.CommentPlugin"}%
>
>
%TMPL:INCLUDE{"TWiki.CommentPlugin"}%
 

 <<O>>  Difference Topic CommentPluginTemplateExample (1 - 2006-12-03 - TWikiContributor)
 

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"}%

View | History: r2 < r1 | More

This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback

Revision r2 - 2010-03-20 - 04:17:06 - TWikiContributor Edit

(%REVTITLE2% vs. %REVTITLE1%) CommentPluginTemplateExample < Sandbox < TWiki