No that isn't it. Maybe I didn't explain it properly.
I *CAN* create a tiddler with a button, using the code I posted which originated with Eric Shulman. That all works fine and selects the correct sidebar. Not sure what you mean about closing the action, the code is fine and works. If you mean that there is no </$action-setfield> then that is wrong, you don't need that when it is all in the opening definition, it's a shorthand. Again, it's Eric's code and it works. I *CAN* set a *CORE* sidebar tiddler to auto-open when the wiki launches using the control panels popup. If I set it to auto-open one of my added tabs (Default sidebar tab in the control panel) then it does not work. Maybe it hasn't populated those tabs when this option is chosen and so it drops back to a core tab. What I want is when I open my Wiki for the 'A-Z' sidebar tab to be selected. I can't see how to do that without some intervention. Yes I can press a button in my '<Stop Press>' tiddler and the tab appears, but then I could just as easily click on the tab myself instead so it saves no effort. I want the wiki to open, open my default tiddler *AND* select the 'A-Z' tab in the sidebar all on it's own. Is this making sense? On Wednesday, 1 June 2016 17:06:17 UTC+1, Mark Armitage wrote: > > > <https://lh3.googleusercontent.com/-rmH1YYY77r4/V08HbLVmnRI/AAAAAAAAIWg/agSvoVoV3UwQohTrbJm0hE39zEV8VIEjQCKgB/s1600/Screen%2BShot%2B2016-06-01%2Bat%2B16.39.33.png> > > > > <https://lh3.googleusercontent.com/-rmH1YYY77r4/V08HbLVmnRI/AAAAAAAAIWg/agSvoVoV3UwQohTrbJm0hE39zEV8VIEjQCKgB/s1600/Screen%2BShot%2B2016-06-01%2Bat%2B16.39.33.png> > My wiki opens a 'Stop Press' tiddler at the start for any notes I might > want to leave myself. I also added some tabs to the sidebar (A-Z, ToC and > Tasks). In the settings it has an option to pick which sidebar tab is > opened when the wiki opens. Unfortunately if I select 'A-Z' in the > drop-down then when I open my wiki it ignores it and stays on one of the > core sidebars. > > I have found one of Eric's bits about selecting a sidebar tab via code: > > <$button> open "A-Z" tab > <$action-setfield $tiddler="$:/state/tab/sidebar--1835078512" > text="Sidebar-Index-AZ"> > </$button> > > and that works fine. But is there a way to automatically have the tab > selected? I have a tiddler '<Stop Press>' that opens with the Wiki so I > assume t could be done from there, just no idea how to do it. New to TW5 > and haven'y used TW2 for many years, so very rusty. > > TIA, > > Mark > -- 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 https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/04369107-d9ec-4fe6-a1b9-0ff87f208e1e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

