---+!! Template Example Example template topic for [[%SANDBOXWEB%.CommentPluginExamples#TemplateTopic][CommentPluginExamples:templatetopic]]. <verbatim> %TMPL:DEF{PROMPT:example}%%TMPL:P{promptbox}%%TMPL:END% </verbatim> <verbatim> %TMPL:DEF{FORM:example}% #TemplateTopicPrompt <form method="post" action="%SCRIPTURL{rest}%/CommentPlugin/comment" enctype="application/x-www-form-urlencoded" name="examplecomment" id="examplecomment"> <input type="hidden" name="endPoint" value="%BASEWEB%.%BASETOPIC%#TemplateTopic" /> <input type="hidden" name="topic" value="%BASEWEB%.%BASETOPIC%" /> %COMMENTPROMPT% </form> %TMPL:END% </verbatim> <verbatim> %TMPL:DEF{OUTPUT:example}%%POS:BEFORE%%TMPL:P{OUTPUT:examplethreadmode}%%TMPL:END% </verbatim> <verbatim> %TMPL:DEF{OUTPUT:examplethreadmode}%%POS:BEFORE% %GMTIME{"#CommentDate$epoch"}% %WIKIUSERNAME% - %DATE%: %URLPARAM{"comment" encode="$encodeguest"}% --- %TMPL:END% </verbatim> Include generic comment templates: <verbatim> %TMPL:INCLUDE{"%SYSTEMWEB%.CommentPlugin"}% </verbatim>
This topic: Sandbox
>
CommentPlugin
>
CommentPluginTemplateExample
Topic revision:
2018/01/22,
UnknownUser
(raw view)
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki?
Send feedback