CommentPlugin examples

CommentPlugin templates

Default

Default comment output 1

-- TWikiContributor - 26 Nov 2006

Default comment output 2

-- TWikiContributor - 26 Nov 2006

 

top

Eintrag:
%COMMENT{type="top"}%
So sieht es aus:
 

bottom

Eintrag:
%COMMENT{type="bottom"}%
Und so sieht es aus:
 

above

Eintrag:
%COMMENT{type="above"}%
Und so sieht es aus:

 

below

Eintrag:
%COMMENT{type="below"}%
Und so sieht es aus:
 

bulletabove

Eintrag:
%COMMENT{type="bulletabove" inputsize="20"}%
Example with inputsize="20": Und so sieht es aus:
  • Bullet above comment output 1
  • Bullet above comment output 2
 

threadmode

Eintrag:
%COMMENT{type="threadmode"}%

Und so sieht es aus:

Threadmode comment output 2

-- TWikiContributor - 26 Nov 2006

 

belowthreadmode

Eintrag:
%COMMENT{type="belowthreadmode"}%

Und so sieht es aus:

 

TWikiContributor - 26 Nov 2006 - 12:09

Belowthreadmode comment output 2

TWikiContributor - 26 Nov 2006 - 12:09

Belowthreadmode comment output 1

tableprepend

Eintrag:
COMMENT{type="tableprepend"}%

Und so sieht es aus:

 
Tablepreprend comment output 2 TWikiContributor 26 Nov 2006 - 11:03
Tablepreprend comment output 1 TWikiContributor 26 Nov 2006 - 11:02

tableappend

Eintrag:
%COMMENT{type="tableprepend"}%

Und so sieht es aus:

 
Tableappend comment output 1 TWikiContributor 26 Nov 2006 - 10:38
Tableappend comment output 2 TWikiContributor 26 Nov 2006 - 10:39
 

after

Eintrag:
%COMMENT{type="after"}%

Und so sieht es aus:

 

action

(requires TWiki:Plugins/ActionTrackerPlugin)

%ACTION{ due="1-Dec-2007" creator="Main.TWikiContributor" uid="000001" state="open" created="26-Nov-2006" who="Main.TWikiContributor" }% <<EOF Action comment output 1 - Created by TWikiContributor, 26 Nov 2006 - 10:58 EOF %ACTION{ due="1-Jan-2008" creator="Main.TWikiContributor" uid="000003" state="open" created="26-Nov-2006" who="Main.TWikiContributor" }% <<EOF Action comment output 2 - Created by TWikiContributor, 26 Nov 2006 - 10:58 EOF

table

Eintrag:
%COMMENT{type="table"}%

Und so sieht es aus:

1 Dec 2007 TWikiContributor Athens
1 Jan 2008 TWikiContributor Beijing

toctalk


%COMMENT{type="toctalk"}%

26 Nov 2006 - 00:45 TWikiContributor: Toctalk output summary 1

Toctalk output message 1

26 Nov 2006 - 11:09 TWikiContributor: Toctalk output summary 2

Toctalk output message 2

bookmark


%COMMENT{type="bookmark"}%

return

Post to a different topic and return to here. In this example comments are written to Sandbox.CommentPluginExampleComments . Available with TWiki 4.1.
<!--
   * Set COMMENT_TOPIC = Sandbox.CommentPluginExampleComments
-->

_Comments:_
<blockquote>
%INCLUDE{%COMMENT_TOPIC%}%
</blockquote>

---
%COMMENT{type="return" target="%COMMENT_TOPIC%"}% %BR%

Comments:

Warning: Can't find topic Sandbox.CommentPluginExampleComments


 


noform

Example of a custom form to save a comment to a new topic. When the topic is created the parent will be our Sandbox example topic .
<form method="post" action="%SCRIPTURL{save}%/Sandbox/" enctype="application/x-www-form-urlencoded" name="noformcomment0" id="noformcomment0">
<input type="hidden" name="topicparent" value="CommentPluginExampleComments" />
<input type="hidden" name="comment_action" value="save" />
<input type="hidden" name="nonwikiword" value="off" />
<input type="hidden" name="onlywikiname" value="on" />
<div class="twikiFormSteps">
<div class="twikiFormStep">
*New topic name:* %BR%
<input class="twikiInputField" %DISABLED% type="text" size="40" name="topic" id="topic" value="" /> <span class="twikiGrayText">Enter a !WikiWord topic name</span>
</div>
<div class="twikiFormStep twikiLast">
*Topic text:* %BR%
%COMMENT{noform="on" button="Save"}%
</div>
</div>
</form>

New topic name:
Enter a WikiWord topic name
Topic text:
 

templatetopic

Example of a form definition in a topic. The comment template is located in CommentPluginTemplateExample .

TWikiContributor - 08 Apr 2007:

templatetopic example comment output 1

%COMMENT{noform="on" type="example" templatetopic="Sandbox.CommentPluginTemplateExample" target="%TOPIC%" button="Add comment" }%








 
  • Suche in Topic-Namen

  • Suche in Topic-Inhalten
This site is powered by the TWiki collaboration platform Powered by Perl