Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Item1156: Create Release01x00 branch
git-svn-id: http://svn.foswiki.org/branches/Release01x00@2720 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
- Loading branch information
KennethLavrsen
authored and
KennethLavrsen
committed
Feb 26, 2009
1 parent
14b4639
commit 81fee89
Showing
16 changed files
with
1,948 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
CommentPlugin/data/Sandbox/CommentPluginExampleComments.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
%META:TOPICINFO{author="ProjectContributor" date="1165176010" format="1.1" reprev="1.1" version="1.1"}% | ||
---+!! Comments | ||
|
||
Example comment topic for [[%SYSTEMWEB%.CommentPluginExamples#return][CommentPluginExamples - "return"]] | ||
--- | ||
%STARTINCLUDE% | ||
|
||
|
||
Target comment output 1 | ||
|
||
-- Main.ProjectContributor - 03 Dec 2006 | ||
|
||
|
||
Target comment output 2 | ||
|
||
-- Main.ProjectContributor - 03 Dec 2006 |
40 changes: 40 additions & 0 deletions
40
CommentPlugin/data/Sandbox/CommentPluginTemplateExample.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
%META:TOPICINFO{author="ProjectContributor" date="1165176010" format="1.1" reprev="1.1" version="1.1"}% | ||
---+!! Template Example | ||
|
||
Example template topic for [[%SYSTEMWEB%.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{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% | ||
</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"}% | ||
|
||
--- | ||
%TMPL:END% | ||
</verbatim> | ||
|
||
|
||
Include generic comment templates: | ||
<verbatim> | ||
%TMPL:INCLUDE{"%SYSTEMWEB%.CommentPlugin"}% | ||
</verbatim> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,248 @@ | ||
%META:TOPICINFO{author="ProjectContributor" date="1176025210" format="1.1" reprev="1.1" version="1.1"}% | ||
%META:TOPICPARENT{name="CommentPluginTemplate"}% | ||
* Top comment output 2 -- Main.ProjectContributor - 26 Nov 2006 | ||
* Top comment output 1 -- Main.ProjectContributor - 26 Nov 2006 | ||
|
||
---+!! CommentPlugin examples | ||
|
||
%TOC% | ||
|
||
---++ !CommentPlugin templates | ||
|
||
---+++ Default | ||
|
||
|
||
|
||
Default comment output 1 | ||
|
||
-- Main.ProjectContributor - 26 Nov 2006 | ||
|
||
|
||
|
||
Default comment output 2 | ||
|
||
-- Main.ProjectContributor - 26 Nov 2006 | ||
|
||
%COMMENT{}% | ||
|
||
|
||
|
||
|
||
---+++ =top= | ||
|
||
%COMMENT{type="top"}% | ||
|
||
|
||
|
||
|
||
---+++ =bottom= | ||
|
||
%COMMENT{type="bottom"}% | ||
|
||
|
||
|
||
|
||
---+++ =above= | ||
|
||
|
||
|
||
Above comment output 1 | ||
|
||
-- Main.ProjectContributor - 26 Nov 2006 | ||
|
||
|
||
Above comment output 2 | ||
|
||
-- Main.ProjectContributor - 26 Nov 2006 | ||
%COMMENT{type="above"}% | ||
|
||
|
||
|
||
|
||
---+++ =below= | ||
|
||
%COMMENT{type="below"}% | ||
* Below comment output 2 -- Main.ProjectContributor - 26 Nov 2006 | ||
* Below comment output 1 -- Main.ProjectContributor - 26 Nov 2006 | ||
|
||
|
||
|
||
|
||
---+++ =bulletabove= | ||
Example with =inputsize="20"=: | ||
|
||
* Bullet above comment output 1 | ||
* Bullet above comment output 2 | ||
%COMMENT{type="bulletabove" inputsize="20"}% | ||
|
||
|
||
|
||
|
||
---+++ =threadmode= | ||
|
||
|
||
|
||
Threadmode comment output 1 | ||
|
||
-- Main.ProjectContributor - 26 Nov 2006 | ||
|
||
|
||
Threadmode comment output 2 | ||
|
||
-- Main.ProjectContributor - 26 Nov 2006 | ||
%COMMENT{type="threadmode"}% | ||
|
||
|
||
|
||
|
||
---+++ =belowthreadmode= | ||
|
||
%COMMENT{type="belowthreadmode"}% | ||
|
||
---++++ Main.ProjectContributor - 26 Nov 2006 - 12:09 | ||
|
||
Belowthreadmode comment output 2 | ||
|
||
|
||
---++++ Main.ProjectContributor - 26 Nov 2006 - 12:09 | ||
|
||
Belowthreadmode comment output 1 | ||
|
||
|
||
|
||
|
||
---+++ =tableprepend= | ||
|
||
%COMMENT{type="tableprepend"}% | ||
| Tablepreprend comment output 2 | Main.ProjectContributor | 26 Nov 2006 - 11:03 | | ||
| Tablepreprend comment output 1 | Main.ProjectContributor | 26 Nov 2006 - 11:02 | | ||
|
||
|
||
|
||
|
||
---+++ =tableappend= | ||
|
||
| Tableappend comment output 1 | Main.ProjectContributor | 26 Nov 2006 - 10:38 | | ||
| Tableappend comment output 2 | Main.ProjectContributor | 26 Nov 2006 - 10:39 | | ||
%COMMENT{type="tableappend"}% | ||
|
||
|
||
|
||
|
||
---+++ =after= | ||
|
||
* After comment output 1 -- Main.ProjectContributor - 26 Nov 2006 | ||
* After comment output 2 -- Main.ProjectContributor - 26 Nov 2006 | ||
%COMMENT{type="after"}% | ||
|
||
|
||
|
||
|
||
---+++ =action= | ||
|
||
(requires Foswiki:Extensions/ActionTrackerPlugin) | ||
|
||
%ACTION{ due="1-Dec-2007" creator="Main.ProjectContributor" uid="000001" state="open" created="26-Nov-2006" who="Main.ProjectContributor" }% <<EOF | ||
Action comment output 1 | ||
- Created by Main.ProjectContributor, 26 Nov 2006 - 10:58 | ||
EOF | ||
%ACTION{ due="1-Jan-2008" creator="Main.ProjectContributor" uid="000003" state="open" created="26-Nov-2006" who="Main.ProjectContributor" }% <<EOF | ||
Action comment output 2 | ||
- Created by Main.ProjectContributor, 26 Nov 2006 - 10:58 | ||
EOF | ||
%COMMENT{type="action"}% | ||
|
||
|
||
|
||
|
||
---+++ =table= | ||
|
||
| 1 Dec 2007 | Main.ProjectContributor | Athens | | ||
| 1 Jan 2008 | Main.ProjectContributor | Beijing | | ||
%COMMENT{type="table"}% | ||
|
||
|
||
|
||
|
||
---+++ =toctalk= | ||
|
||
|
||
---++++ 26 Nov 2006 - 00:45 Main.ProjectContributor: Toctalk output summary 1 | ||
Toctalk output message 1 | ||
|
||
|
||
---++++ 26 Nov 2006 - 11:09 Main.ProjectContributor: Toctalk output summary 2 | ||
Toctalk output message 2 | ||
|
||
%COMMENT{type="toctalk"}% | ||
|
||
|
||
|
||
|
||
---+++ =bookmark= | ||
|
||
* [[http://foswiki.org][Bookmark output link label]] %IF{" '' = '' " then="" else="- "}% | ||
* [[http://foswiki.org][Foswiki]] %IF{" 'Bookmark output comment' = '' " then="" else="- "}%Bookmark output comment | ||
%COMMENT{type="bookmark"}% | ||
|
||
|
||
|
||
|
||
---+++ =return= | ||
Post to a different topic and return to here. In this example comments are written to [[%COMMENT_TOPIC%]]. | ||
|
||
<!-- | ||
* Set COMMENT_TOPIC = Sandbox.CommentPluginExampleComments | ||
--> | ||
|
||
_Comments:_ | ||
<blockquote> | ||
%INCLUDE{%COMMENT_TOPIC%}% | ||
</blockquote> | ||
|
||
--- | ||
%COMMENT{type="return" target="%COMMENT_TOPIC%"}% %BR% | ||
|
||
|
||
|
||
|
||
|
||
---+++ =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 [[Sandbox.CommentPluginExampleComments][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="foswikiFormSteps"> | ||
<div class="foswikiFormStep"> | ||
*New topic name:* %BR% | ||
<input class="foswikiInputField" %DISABLED% type="text" size="40" name="topic" id="topic" value="" /> <span class="foswikiGrayText">Enter a !WikiWord topic name</span> | ||
</div> | ||
<div class="foswikiFormStep foswikiLast"> | ||
*Topic text:* %BR% | ||
%COMMENT{noform="on" button="Save"}% | ||
</div> | ||
</div> | ||
</form> | ||
|
||
|
||
|
||
|
||
#TemplateTopic | ||
---+++ =templatetopic= | ||
Example of a form definition in a topic. The comment template is located in Sandbox.CommentPluginTemplateExample. | ||
|
||
|
||
#CommentDate1176024819 | ||
Main.ProjectContributor - 08 Apr 2007: | ||
|
||
templatetopic example comment output 1 | ||
|
||
--- | ||
%COMMENT{noform="on" type="example" templatetopic="Sandbox.CommentPluginTemplateExample" target="%TOPIC%" button="Add comment" }% | ||
|
||
--- | ||
* Bottom comment output 1 -- Main.ProjectContributor - 26 Nov 2006 | ||
* Bottom comment output 2 -- Main.ProjectContributor - 26 Nov 2006 |
Oops, something went wrong.