Cool! Works well. Just curious how to restyle it.
On Sun, Nov 3, 2013 at 5:37 PM, Stephan Hradek <[email protected]>wrote: > Tested it. > > [[Homebutton]] > <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> > > And it seems to work. > > Include {{Homebutton}} whereever you want one. > > -- > You received this message because you are subscribed to a topic in the > Google Groups "TiddlyWiki" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/tiddlywiki/nsECiXqk7fw/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/tiddlywiki. > For more options, visit https://groups.google.com/groups/opt_out. > -- David Gifford Christian Reformed World Missions, Mexico City -- 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 post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.

