Name:SingleTiddlerPlugin
Description:Display one tiddler at one time
Author:PaulDowney (psd (at) osmosoft (dot) com)
Source:http://whatfettle.com/2008/07/SingleTiddlerPlugin/
CodeRepository:http://svn.tiddlywiki.org/Trunk/contributors/PaulDowney/plugins/SingleTiddlerPlugin/
Version:0.1
License:BSD License
Comments:Please make comments at http://groups.google.co.uk/group/TiddlyWikiDev
CoreVersion:2.4

Documentation

This plugin closes all tiddlers and displays one tiddler at one time.
The URL is updated to point to the current tiddler.

Code

/*jslint onevar: false nomen: false plusplus: false */
/*global jQuery window config Story story Tiddler */
(function ($) {
    version.extensions.SingleTiddlerPlugin = {installed: true};

	Story.prototype._displayTiddler = Story.prototype.displayTiddler;
	Story.prototype.displayTiddler = function (src, t) {
        var title = t instanceof Tiddler ? t.title : t;
		story.closeAllTiddlers();
		this._displayTiddler.apply(this, arguments);
        window.location.hash = encodeURIComponent(String.encodeTiddlyLink(title));
	};

}(jQuery));
bag
singletiddler_public
created
Thu, 15 Jul 2010 15:23:14 GMT
creator
psd
modified
Thu, 15 Jul 2010 15:23:55 GMT
modifier
psd
tags
systemConfig