Hi Alberto

> The problem is to know which $:/state/tab-{-something} is the right one.

The names of these state tiddlers are formed by hashing a string
representing the location of the corresponding widget in the widget tree.
This means that running the qualify macro within a given tiddler will
always give the same result.

The easiest way to discover the state tiddler title that has been generated
by a particular tab macro is to temporarily place this immediately before
it:

<<qualify "$:/state/tab">>

The generated title will remain consistent unless you move the tab to
display it in a different place in the widget tree (eg transcluding the
tiddler containing the tab macro).

Depending on your situation you may be better off cloning the core tabs
macro and generating your own variant which uses a fixed tiddler title for
storing state.

Best wishes

Jeremy





On Tue, Jun 17, 2014 at 9:49 AM, Alberto Molina <[email protected]>
wrote:

> Hi,
>
> When using tabs like that:
>
> <<tabs "my tabs list" "default" "$:/state/tab">>
>
> there's a tiddler like $:/state/tab-{-1805294878}
> <https://groups.google.com/forum/#%24%3A%2Fstate%2Ftab-%7B-1805294878%7D>
> containing the state of my tabs (which one is selected).
>
> I would like to access this state tab tiddler in order to see and modify
> its contents. More specifically, I want to create a button that states the
> selected tab to "none". The problem is to know which
> $:/state/tab-{-something} is the right one.
>
> Ideas?
>
> Alberto
>
>
>  --
> 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.
>



-- 
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/d/optout.

Reply via email to