On Oct 9, 2:47 am, Eric Shulman <[email protected]> wrote:

> If this is embedded in a tiddler named SomeThing, then you can enter a
> URL into the browser like this:
>
> ...path/to/file.html#[[SomeThing txtMyTabset:otherlabel]]

Thanks Eric,

This is a feature I wanted for a long time,  however I can't seem to
get it to work for me.  It just creates a non-existent tiddler 'Help
txtHelpTabs:CreateNewMenu'

I've tried:
http://twt-treeview-executive.tiddlyspot.com/index.html#[[Help
txtHelpTabs:CreateNewMenu]]
http://twt-treeview-executive.tiddlyspot.com/index.html#[[Help%20txtHelpTabs:CreateNewMenu]]
http://twt-treeview-executive.tiddlyspot.com/index.html#%5B%5BHelp%20txtHelpTabs:CreateNewMenu%5D%5D

Can you tell me where I'm going wrong?

Thanks,
Morris





On Oct 9, 2:47 am, Eric Shulman <[email protected]> wrote:
> > Do you know how to Permalink to a particular tab in a tabset?
>
> In TW2.4.2, we added a feature (using code I wrote) that allows you to
> temporarily set *any* TiddlyWiki "chk..." or "txt..." option, directly
> from the URL, by using the an 'option paramifier', like this:
>
> ...path/or/url/to/file.html#optionname:value
>
> For your particular use-case (permalinking to a specific tab in a
> set):
>
> The first param of the <<tabs>> macro is the 'txt...' option name that
> is used to track which tab is currently displayed.  This value is
> stored locally in a cookie and re-read each time the TW document is
> loaded, so the whatever tab was last viewed is automatically opened
> the next time the tabset is re-displayed.  Of course, the first tab is
> displayed by default if no cookie-based value is available (i.e., the
> first time you view the tabs)
>
> Combining the "txt..." option from the <<tabs>> macro with the 'option
> paramifier' feature, you can write something like this:
>
> <<tabs txtMyTabset "somelabel" tip tiddler "otherlabel" tip
> tiddler ... >>
>
> If this is embedded in a tiddler named SomeThing, then you can enter a
> URL into the browser like this:
>
> ...path/to/file.html#[[SomeThing txtMyTabset:otherlabel]]
>
> This will automatically display the SomeThing tiddler (a regular
> permalink)... *and* it will also set the internal config.options
> ['txtMyTabset'] variable, so that the 2nd tab in the tabset (i.e.,
> "otherlabel") is displayed when the tiddler is shown, regardless of
> any previously-stored cookie value.
>
> Note: a value specified in an 'option paramifier' is only applied
> during that TW session, and does not automatically change any cookie-
> based stored value.  Of course, as soon as you switch tabs in that
> tabset, the 'txtMyTabset' value will be updated *for real* in the
> cookie... but if you don't switch tabs (or even click on the tab
> text!), then the previously viewed tab will be re-displayed if you
> reload the document without the option paramifier in the URL.
>
> enjoy,
> -e
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to