data/Sandbox/CommentPluginTemplateExample.txt,v
author Colas Nahaboo <colas@nahaboo.net>
Sat, 26 Jan 2008 15:50:53 +0100
changeset 0 414e01d06fd5
permissions -rw-r--r--
RELEASE 4.2.0 freetown
colas@0
     1
head	1.1;
colas@0
     2
access;
colas@0
     3
symbols;
colas@0
     4
locks; strict;
colas@0
     5
comment	@# @;
colas@0
     6
colas@0
     7
colas@0
     8
1.1
colas@0
     9
date	2008.01.22.03.21.36;	author TWikiContributor;	state Exp;
colas@0
    10
branches;
colas@0
    11
next	;
colas@0
    12
colas@0
    13
colas@0
    14
desc
colas@0
    15
@buildrelease
colas@0
    16
@
colas@0
    17
colas@0
    18
colas@0
    19
1.1
colas@0
    20
log
colas@0
    21
@buildrelease
colas@0
    22
@
colas@0
    23
text
colas@0
    24
@%META:TOPICINFO{author="TWikiContributor" date="1165176010" format="1.1" reprev="1.1" version="1"}%
colas@0
    25
---+!! Template Example
colas@0
    26
colas@0
    27
Example template topic for [[%TWIKIWEB%.CommentPluginExamples#TemplateTopic][CommentPluginExamples:templatetopic]].
colas@0
    28
colas@0
    29
colas@0
    30
<verbatim>
colas@0
    31
%TMPL:DEF{PROMPT:example}%%TMPL:P{promptbox}%%TMPL:END%
colas@0
    32
</verbatim>
colas@0
    33
colas@0
    34
<verbatim>
colas@0
    35
%TMPL:DEF{FORM:example}%
colas@0
    36
#TemplateTopicPrompt
colas@0
    37
<form method="post" action="%SCRIPTURL{save}%/%BASEWEB%/%BASETOPIC%" enctype="application/x-www-form-urlencoded" name="examplecomment" id="examplecomment">
colas@0
    38
<input type="hidden" name="redirectto" value="%BASEWEB%.%BASETOPIC%" />
colas@0
    39
%COMMENTPROMPT%
colas@0
    40
</form>
colas@0
    41
%TMPL:END%
colas@0
    42
</verbatim>
colas@0
    43
colas@0
    44
<verbatim>
colas@0
    45
%TMPL:DEF{OUTPUT:example}%%POS:BEFORE%%TMPL:P{OUTPUT:examplethreadmode}%%TMPL:END%
colas@0
    46
</verbatim>
colas@0
    47
colas@0
    48
<verbatim>
colas@0
    49
%TMPL:DEF{OUTPUT:examplethreadmode}%%POS:BEFORE%
colas@0
    50
%GMTIME{"#CommentDate$epoch"}%
colas@0
    51
%WIKIUSERNAME% - %DATE%:
colas@0
    52
colas@0
    53
%URLPARAM{"comment"}%
colas@0
    54
colas@0
    55
--- 
colas@0
    56
%TMPL:END%
colas@0
    57
</verbatim>
colas@0
    58
colas@0
    59
colas@0
    60
Include generic comment templates:
colas@0
    61
<verbatim>
colas@0
    62
%TMPL:INCLUDE{"%TWIKIWEB%.CommentPlugin"}%
colas@0
    63
</verbatim>@