Hi Jeremy, thank you for the info. I will try this out. Iannis Z.
On Saturday, October 4, 2014 6:08:20 PM UTC+3, Jeremy Ruston wrote: > > Hi iani > > > I edited the code of $:/core/ui/SideBarLists > replacing "$:/core/ui/SideBar/Open" with "TableOfContents" > > That approach is not recommended. If there's a subsequent update to > "$:/core/ui/SideBar/Open" then your overridden version will take > precedence, and you won't receive the updated version. That could > present compatibility problems. > > The recommended approach is to define a tiddler called " > $:/state/tab/sidebar--1835078512" with the value being the title of the > tiddler containing the tab you want to be shown by default (eg > "TableOfContents"). > > Best wishes > > Jeremy > > > > On Sat, Oct 4, 2014 at 3:57 PM, iani <[email protected] <javascript:>> > wrote: > >> >> Hi Ton, >> >> thanks for the answer. It did solve my problem. I edited the code >> of $:/core/ui/SideBarLists replacing "$:/core/ui/SideBar/Open" with >> "TableOfContents". I have not checked what you write: >> >> 2) When reloading the TW the tab selected during the last Save will be >>> opened. >> >> >> But I have never experienced this to happen. Perhaps because I do not >> save the TW explicitly. I run TW with node.js. >> Best, >> Iannis Zannos >> >> >> On Saturday, October 4, 2014 4:05:56 PM UTC+3, Ton Gerner wrote: >>> >>> Hi Iannis, >>> >>> As far as I know that is not possible. >>> >>> If you have a look at the shadow tiddler $:/core/ui/SideBarLists you >>> will find therein: >>> >>> <<tabs "[all[shadows+tiddlers]tag[$:/tags/SideBar]!has[draft.of]]" >>> "$:/core/ui/SideBar/Open" "$:/state/tab/sidebar">> >>> >>> So the default tab to open is the More tab. >>> >>> *But* the state of the tabs is held in a tiddler >>> $:/state/tab/sidebar--1835078512. >>> E.g. if the Recent tab is selected the tiddler >>> $:/state/tab/sidebar--1835078512 >>> contains $:/core/ui/SideBar/Recent >>> >>> If you save your TW the state of the - at that moment active - tab is >>> saved in $:/state/tab/sidebar--1835078512 >>> >>> So you edited for example a tiddler while the Tools tab was selected. >>> Upon save the $:/state/tab/sidebar--1835078512 tiddler will contain >>> $:/core/ui/SideBar/Tools. When reloading the TW the Tools tab will be >>> selected. >>> >>> Only if you delete the tiddler $:/state/tab/sidebar--1835078512 the >>> default tab More will become active again. >>> >>> Summarized: >>> 1) With an "undefined" state the default tab is given by the tabs macro >>> in $:/core/ui/SideBarLists (you can change $:/core/ui/SideBar/Open to >>> $:/core/ui/SideBar/Contents to make Contents the default). >>> 2) When reloading the TW the tab selected during the last Save will be >>> opened. >>> >>> Hope that helps. >>> >>> Cheers, >>> >>> Ton >>> >>> >>> On Saturday, October 4, 2014 1:32:45 PM UTC+2, iani wrote: >>>> >>>> >>>> Hello, >>>> >>>> I am trying to customize the menu tabs of the sidebar. I added an item >>>> "Contents". I would like this item to be open by default when reloading >>>> the wiki. That is, the current default is the tab "Open", and I would >>>> like >>>> to change that to be the tab "Contents". How can I do that? >>>> >>>> Thanks, >>>> >>>> Iannis Zannos >>>> >>>> >>>> -- >> 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] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> Visit this group at http://groups.google.com/group/tiddlywiki. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Jeremy Ruston > mailto:[email protected] <javascript:> > -- 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/d/optout.

