Where do I need to add this code

<html><button onclick="

var defaultTiddlersTitle = '$:/DefaultTiddlers',
    defaultTiddlersTiddler = $tw.wiki.getTiddler(defaultTiddlersTitle),
    defaultTiddlers = [];
if(defaultTiddlersTiddler) {
    defaultTiddlers = $tw.wiki.filterTiddlers(defaultTiddlersTiddler.fields.
text);
}
var storyTitle = '$:/StoryList',
    story = [];
for(var t=0; t
<defaultTiddlers.length; t++) {
    story[t] = defaultTiddlers[t];

}
$tw.wiki.addTiddler({title: storyTitle, text: '', list: story},$tw.wiki.
getModificationFields());
return false;
">Home</button></html>

to make the home button work? Simply putting it into a tiddler yields a 
button that does nothing.


Am Sonntag, 3. November 2013 22:23:58 UTC+1 schrieb David Gifford:
>
> Any way to do a home button for TW5? That is, when you click on the 
> SiteTitle, all the tiddlers close and the default tiddler opens?
>
> There was just a thread on this for classic. Possible already in 5?
>
> Dave
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/77158a0a-bfa6-4627-8eb6-1771160de7ab%40googlegroups.com.

Reply via email to