Ho Jakob,
I don't know where you got that home button, but it has tw- prefixes, which
years ago were changed to tc- prefixes. So it is probably just a really old
button.
Try inserting {{$:/core/ui/Buttons/home
<https://tiddlywiki.com/#%24%3A%2Fcore%2Fui%2FButtons%2Fhome>}}
On Sun, May 17, 2020 at 3:04 AM 'Jakob Schwichtenberg' via TiddlyWiki <
[email protected]> wrote:
> 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 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/77158a0a-bfa6-4627-8eb6-1771160de7ab%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/77158a0a-bfa6-4627-8eb6-1771160de7ab%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
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/CANE%3DBFL4odvELZqju9pxogP%2B_Z3bcwpQbyHUgtDuXSi5UXKs7w%40mail.gmail.com.