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.
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)
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
| | ©
Related Topics: TWikiPlugins,
DeveloperDocumentationCategory,
AdminDocumentationCategory,
TWikiPreferences
Topic revision: r3 - 03 Sep 2006 - 02:37:17 -
SvenDowideit?