Skip to content

Commit

Permalink
Item1112: port TimelinePlugin
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/TimelinePlugin@2569 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
SvenDowideit authored and SvenDowideit committed Feb 20, 2009
1 parent e41507e commit f4da369
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion data/System/TimeLineSearch.txt
Expand Up @@ -2,7 +2,7 @@
<?xml version="1.0" encoding="%CHARSET%" ?>
<data>
%SEARCH{
".*" web="TWiki" regex="on" nototal="on" noheader="on" nosearch="on"
".*" web="%SYSTEMWEB%" regex="on" nototal="on" noheader="on" nosearch="on"
order="modified" limit="10" reverse="on"
format="<event start=$quot$date GMT$quot title=$quot$topic$quot link=$quot%SCRIPTURL{"view"}%/$web/$topic$quot >$summary(noheader)</event>"}%
</data>
Expand Down
19 changes: 10 additions & 9 deletions data/System/TimelinePlugin.txt
@@ -1,5 +1,5 @@
%META:TOPICINFO{author="SvenDowideit" date="1157251037" format="1.1" version="1.3"}%
---+ Timeline TWiki Plugin
---+ Timeline Foswiki Plugin
<img src="%ATTACHURLPATH%/timeline.jpg" alt="timeline.jpg" style="float:right;" />

[[http://simile.mit.edu/timeline/][Timeline]] is a DHTML-based AJAXy widget for visualizing time-based events.
Expand All @@ -23,7 +23,7 @@ Plugin settings are stored as preferences variables. To reference
a plugin setting write ==%<nop>&lt;plugin&gt;_&lt;setting&gt;%==, i.e. ==%<nop>TIMELINEPLUGIN_SHORTDESCRIPTION%==

* One line description, is shown in the %SYSTEMWEB%.TextFormattingRules topic:
* Set SHORTDESCRIPTION = Show a scrolling Timeline from a TWiki SEARCH
* Set SHORTDESCRIPTION = Show a scrolling Timeline from a Foswiki SEARCH

* Debug plugin: (See output in =data/debug.txt=)
* Set DEBUG = 0
Expand All @@ -42,14 +42,14 @@ width="700px"
date="1890"
}%

To use data from a twiki topic, you need to set the SKIN=text and add =?contenttype=text/xml= (to trick IE's XHTTPRequest into working) to the url
To use data from a Foswiki topic, you need to set the SKIN=text and add =?contenttype=text/xml= (to trick IE's XHTTPRequest into working) to the url

<verbatim>
"http://10.10.10.20/trunk/bin/view/TWiki/TimeLineSearchJSON?contenttype=text/xml"
"http://10.10.10.20/trunk/bin/view/System/TimeLineSearchJSON?contenttype=text/xml"
urltype="JSON"
</verbatim>

---+++ TWiki =SEARCH= based timeline
---+++ Foswiki =SEARCH= based timeline
This example uses the %SYSTEMWEB%.TimeLineSearchJSON topic to show the last 10 modified topics in all webs.


Expand All @@ -61,7 +61,8 @@ height="450px"
width="700px"
date="%DISPLAYTIME{"$day $month $year"}%"
}%
The example is made up of the the %<nop>TIMELINE% variable that is converted into the client side javascript, and a TWiki %<nop>SEARCH% statement that formats the results into the XML data format that the javascript requires.
The example is made up of the the %<nop>TIMELINE% variable that is converted into the client side javascript, and a Foswiki %<nop>SEARCH%
statement that formats the results into the XML data format that the javascript requires.

<verbatim>
%TIMELINE{
Expand Down Expand Up @@ -100,16 +101,16 @@ format="<event start='$date' title='$topic' link='%SCRIPTURL{"view"}%/$web/$topi

---++ Plugin Info

| Plugin Author: | TWiki:Main.SvenDowideit - <img src="%ATTACHURLPATH%/wikiringlogo20x20.png" /> http://WikiRing.com |
| Copyright: | TWiki Plugin &copy; 2006-2008, TWiki:Main.SvenDowideit |
| Plugin Author: | Foswiki:Main.SvenDowideit - <img src="%ATTACHURLPATH%/wikiringlogo20x20.png" /> http://WikiRing.com |
| Copyright: | Foswiki Plugin &copy; 2006-2009, SvenDowideit@fosiki.com |
| | The SIMILE Timeline software is sponsored by The Andrew W. Mellon Foundation and is maintained by the SIMILE project, in particular: David François Huynh, dfhuynh at csail.mit.edu |
| Plugin License: | GPL ([[http://www.gnu.org/copyleft/gpl.html][GNU General Public License]]) |
| SIMILE Timeline License: | [[http://simile.mit.edu/license.html][BSD license]] |
| Plugin Version: | %$VERSION% - %$DATE% |
| Change History: | <!-- versions below in reverse order -->&nbsp; |
| 20 Feb 2009 | port to Foswiki |
| 19 March 2008 | updated to Revision 9234: http://simile.mit.edu/repository/timeline/trunk/src/webapp/api and http://simile.mit.edu/repository/ajax/trunk/src/webapp/api/ , updated Plugin to add features.|
| 22 July 2006: | Initial version |
| TWiki Dependency: | $TWiki::Plugins::VERSION 1.1 |
| CPAN Dependencies: | none |
| Other Dependencies: | none |
| Perl Version: | 5.005 |
Expand Down

0 comments on commit f4da369

Please sign in to comment.