release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Search | Go
Wiki > Sandbox > CommentPlugin? > CommentPluginTemplateExample

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" encode="off"}%

--- 
%TMPL:END%

Include generic comment templates:
%TMPL:INCLUDE{"%SYSTEMWEB%.CommentPlugin"}%
r1 - 03 Dec 2006 - 20:00:10 - ProjectContributor

Parents: CommentPlugin?
Copyright by the contributing authors.