In TiddlyWiki5 you don't need the <html> tag; you can just intermix HTML
tags with wikitext.

I plan to add a message "tw-home" that does this; you'll be able to invoke
it with <$button message="tw-home">Home</$button>.

Best wishes

Jeremy








On Sun, Nov 3, 2013 at 11:44 PM, David Gifford <[email protected]> wrote:

> 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.
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
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.

Reply via email to