> Yes, that was my intention. I was hoping for something along the lines
> of a link "[[A:referencelabel:tabA1]]" (ie. referencelabel being the
> label specified in the macro).
The 'tabset ID' (which you call a 'referencelabel') is used to track
the current opened tab within a given tabset, by saving the text of
the currently displayed tab (e.g., "TabA1", "TabA2", etc.) using a
core config.options.* internal variable.
For example, if you write:
<<tabs someID "tab A" "..." [[TiddlerA]] "tab B"
"..." [[TiddlerB]]>>
The current tab text ("tab A" or "tab B") will be stored in
config.options.someID
Note: if the ID begins with "txt" (e.g., "txtSomeID"), it is
automatically saved as a cookie value in addition to being tracked
internally, so that the last opened tab is always redisplayed whenever
that tiddler is opened.
Normally, this tracking value is only set when you actually click on a
tab. However, you could use HTML syntax to construct a special link
that sets this value as part of the 'onclick' handler for the link, so
that when the tiddler containing the tabset is displayed, the desired
tab is opened, like this:
<html><a href='javascript:;' onclick='config.options.tabID="some tab";
story.displayTiddler(story.findContainingTiddler(this),"SomeTiddler");
story.refreshTiddler("SomeTiddler",null,true);'>SomeTiddler</a></html>
(note: omit all newlines from the above... it should be *one* line
only)
The first statement of the onclick handler sets the desired tab in the
internal core variable, and the second statement opens the tiddler
containing the tabset. If the tiddler was *not* previously displayed,
that is all you need. However, if the tiddler *was* already being
displayed, then you must also ensure that tiddler is re-rendered so
the correct tab will be shown. That is what the third statement does.
Also, to make it much easier to repeatedly embed the above syntax, you
can use
http://www.TiddlyTools.com/#AliasPlugin
to define an 'instant macro':
<<alias tabLink [[<html><a href='javascript:;' onclick='config.options.
%1="%2"; story.displayTiddler(story.findContainingTiddler(this),"%0");
story.refreshTiddler("%0",null,true);'>%0</a></html>]]>>
which you can then use like this:
<<tabLink "SomeTiddler" "someLabel" "some tab">>
enjoy,
-e