Skip to content

Multiple TiddlyWikis

sihorton edited this page Feb 21, 2013 · 2 revisions

It is easy to support multiple TiddlyWikis instead of only one. Rename index.html to whatever you want to call your TiddlyWiki, and then copy that file again for each new TiddlyWiki. Then you can then create a plain index.html page which can then have normal html links to each wiki, e.g. <a href="wikiName.html">wikiName</a> assuming you have a TiddlyWiki file "wikiName.html" in the directory.

cawoodm provided a sample index.html which gives you a kind of "global tabs" feature:

<html><head><title>My TiddlyWikis</title></head><body>
    <div><a target="main" href="tw1.html">Wiki 1</a> | <a target="main" href="tw2.html">Wiki 2</a></div>
    <iframe frameborder="0" name="main" width="100%" height="95%" onload="
    var frameWindow = document.getElementById('main').contentWindow;
    frameWindow.getLocalPath = window.externalJsPath;
    frameWindow.loadFile = window.externalJsLoad;
    frameWindow.saveFile = window.externalJsSave;
    frameWindow.allowSave = function() {return true;};
    frameWindow.readOnly = false;    
"></iframe>
</html></body>

The script in the onload event connects to the TiddlyWiki and adds load / save functionality using AppJS.

Clone this wiki locally