TWiki> TWiki Web>TimelinePlugin (03 Sep 2006, SvenDowideit? )EditAttach

Timeline TWiki Plugin

Uses the dead sexy Timeline view from http://simile.mit.edu/timeline/ to show date based information. I use it to show webChanges with the query below, and will update with a task / calendar query soon.

timeline.jpg

Syntax Rules

the %TIMELINE% variable has the following parmeters:
  • interval - (DAY, MONTH, YEAR, DECADE)
  • date - the initial date that the timeline will be centered on
  • height - height in pixels that the timeline area will use
  • width - width in pixels that the timeline area will use

Plugin Settings

Plugin settings are stored as preferences variables. To reference a plugin setting write %<plugin>_<setting>%, i.e. %TIMELINEPLUGIN_SHORTDESCRIPTION%

  • One line description, is shown in the TextFormattingRules topic:
    • Set SHORTDESCRIPTION = Show a scrolling Timeline from a TWiki SEARCH

  • Debug plugin: (See output in data/debug.txt)
    • Set DEBUG = 0

Example (shows when Plugin is installed and running successfully)

The first example shows a timeline based on a pre-esisting xml file (http://www.torontowikituesdays.com/twiki/pub/TWiki/TimelinePlugin/monet.xml)

%TIMELINE{ "http://www.torontowikituesdays.com/twiki/pub/TWiki/TimelinePlugin/monet.xml" interval="DECADE" height="450px" width="700px" date="1870" }%

This example uses the TimeLineSearch topic to show the last 50 modified topics in all webs. (DISABLED - currently can only show one timeline per page)

WARNING: at the moment IE will only work with xml file, not from generated xml as below

%TIMELINE{ "http://www.torontowikituesdays.com/twiki/bin/view/TWiki/TimeLineSearch" interval="YEAR" height="450px" width="700px" date="08 Jan 2009" }% The example is made up of the the %TIMELINE% variable that is converted into the client side javascript, and a TWiki %SEARCH% statement that formats the results into the XML data format that the javascript requires.

%TIMELINE{
"%SCRIPTURL{view}%/%SYSTEMWEB%/TimeLineSearch"
interval="DAY"
height="450px"
width="450px"
date="%DISPLAYTIME{"$day $month $year"}%"
}%

where TimeLineSearch contains

<data>
<!--
   * Set <nop>SKIN = xml

the format of and event:  
   start="May 28 2006 09:00:00 GMT"
   end="Jun 15 2006 09:00:00 GMT"
   isDuration="true" 
   title="Writing Timeline documentation" 
   image="http://simile.mit.edu/images/csail-logo.gif" 
-->
%SEARCH{
".*" web="all" regex="on" nototal="on" noheader="on" nosearch="on" order="modified" reverse="on" limit="10"
format="<event start='$date' title='$topic' link='%SCRIPTURL{"view"}%/$web/$topic' >$summary(noheader)</event>"}%
</data>

Plugin Installation Instructions

Plugin Info

Plugin Author: TWiki:Main.SvenDowideit - http://WikiRing.com
Copyright: © 2006, TWiki:Main.SvenDowideit
| | ©
Plugin License: GPL (GNU General Public License)
SIMILE Timeline License: BSD license
Plugin Version: 22 Feb 2006
Change History:  
22 July 2006: Initial version
TWiki Dependency: $TWiki::Plugins::VERSION 1.1
CPAN Dependencies: none
Other Dependencies: none
Perl Version: 5.005
TWiki:Plugins/Benchmark: GoodStyle 99%, FormattedSearch 99%, TimelinePlugin 99%
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/TimelinePlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/TimelinePluginDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/TimelinePluginAppraisal

Related Topics: TWikiPlugins, DeveloperDocumentationCategory, AdminDocumentationCategory, TWikiPreferences

Topic attachments
I Attachment Action Size Date Who Comment
elseEXT ext manage 4.0 K 03 Sep 2006 - 02:28 UnknownUser  
elseEXT images manage 4.0 K 03 Sep 2006 - 02:28 UnknownUser  
xmlxml monet.xml manage 10.3 K 24 Jul 2006 - 06:14 UnknownUser  
elseEXT scripts manage 4.0 K 24 Jul 2006 - 06:14 UnknownUser  
elseEXT styles manage 4.0 K 24 Jul 2006 - 06:14 UnknownUser  
jsjs timeline-api.js manage 6.3 K 03 Sep 2006 - 02:28 UnknownUser  
jpgjpg timeline.jpg manage 11.5 K 24 Jul 2006 - 06:14 UnknownUser  
elseEXT ttt manage 4.0 K 03 Sep 2006 - 02:25 UnknownUser  
pngpng wikiringlogo20x20.png manage 1.3 K 24 Jul 2006 - 11:44 TWikiGuest  
Topic revision: r3 - 03 Sep 2006 - 02:37:17 - SvenDowideit?
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.TimelinePlugin