[tw] Re: [TW5] Possible to show Title in Vertical Tabs?
In theory you could use the fifth parameter "template" to transclude your tiddlers using another view template. In practice there seems to be a bug. @Jeremy: To illustrate the bug, go to http://tiddlywiki.com and create a tiddler "testme" containing: <$view field="title"/> Edit the "GettingStarted" tiddler. Change <$macrocall $name="tabs" state="$:/state/tabs/platform" tabsList="[prefix[GettingStarted - ]]" default=<> class="tc-vertical"/> to <$macrocall $name="tabs" state="$:/state/tabs/platform" tabsList="[prefix[GettingStarted - ]]" default=<> class="tc-vertical" template="testme"/> And note that the displayed tiddler title is "GettingStarted" and not that of the selected tab. -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
[tw] Re: [TW5] Possible to show Title in Vertical Tabs?
To fix the buf, open $:/core/macros/tabs and change <$list filter="$tabsList$" variable="currentTab"> <$reveal type="match" state=<> text=<> default="$default$"> <$transclude tiddler="$template$" mode="block"> <$transclude tiddler=<> mode="block"/> to <$list filter="$tabsList$"> <$reveal type="match" state=<> text=<> default="$default$"> <$transclude tiddler="$template$" mode="block"> <$transclude tiddler=<> mode="block"/> -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
[tw] Re: [TW5] Possible to show Title in Vertical Tabs?
I meant: To fix the BUG, not the "buf" ;) -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
[tw] Re: [TW5] Possible to show Title in Vertical Tabs?
Thanks. It works. :) On Sunday, 28 September 2014 14:54:02 UTC+8, Stephan Hradek wrote: > > > I meant: To fix the BUG, not the "buf" ;) > > -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
Re: [tw] Re: [TW5] Possible to show Title in Vertical Tabs?
I'm investigating this issue now. In the meantime I would strongly recommend not to edit the shadow tiddler "$:/core/macros/tabs". Instead copy the definition to another tiddler and give it a new name instead of "tabs". Best wishes Jeremy — jeremy.rus...@gmail.com On Sun, Sep 28, 2014 at 7:54 AM, Stephan Hradek wrote: > I meant: To fix the BUG, not the "buf" ;) > -- > 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 tiddlywiki+unsubscr...@googlegroups.com. > To post to this group, send email to tiddlywiki@googlegroups.com. > Visit this group at http://groups.google.com/group/tiddlywiki. > For more options, visit https://groups.google.com/d/optout. -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
Re: [tw] Re: [TW5] Possible to show Title in Vertical Tabs?
The issue here is that you are expecting the tab contents to be transcluded with the currentTiddler variable set to the tiddler containing the tab content. However, in fact, the tabs macro doesn't change the currentTiddler at all. The reason is to support things like the tabs in the tiddlerInfo panel; there we want the tab content to have access to the currentTiddler prevailing at the point that the tabs macro is invoked. Instead, the currentTab variable is available with the title of the tiddler containing the tab content. That is why if you look at the ReleaseTemplate tiddler on tiddlywiki.com you'll see that it explicitly references the "currentTab": <$view tiddler=<> field="title"/> I've made a small update to the docs for 5.1.2 to clarify this behaviour. Best wishes Jeremy On Sun, Sep 28, 2014 at 7:54 AM, Stephan Hradek wrote: > > I meant: To fix the BUG, not the "buf" ;) > > -- > 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 tiddlywiki+unsubscr...@googlegroups.com. > To post to this group, send email to tiddlywiki@googlegroups.com. > Visit this group at http://groups.google.com/group/tiddlywiki. > For more options, visit https://groups.google.com/d/optout. > -- Jeremy Ruston mailto:jeremy.rus...@gmail.com -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
Re: [tw] Re: [TW5] Possible to show Title in Vertical Tabs?
So it's not a bug, neither with the <$list> (the one I reported), nor with the template for tabs (as you need to use explicitly crafted templates for this) but a documentation issue? Fair enough. -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
Re: [tw] Re: [TW5] Possible to show Title in Vertical Tabs?
HI Stephan On Sun, Sep 28, 2014 at 12:44 PM, Stephan Hradek wrote: > So it's not a bug, neither with the <$list> (the one I reported), nor with > the template for tabs (as you need to use explicitly crafted templates for > this) but a documentation issue? > I think both the issues you've raised are quite confusing and unexpected. The tabs macro issue with the currentTiddler is probably a mistake: I think it would have been better for the tabs macro to take a "variable" parameter that defaults to "currentTiddler". Sadly, it's too late to change now. We could add the "variable" parameter, but it would have to default to "currentTab" for backwards compatibility. Actually, there is a potential way to resolve it: we could switch to a new convention and reimplement the tabs macro as "tg-macro" (g === "global macro", to distinguish from "tm-*" which is used for messages). The new version could have a different default for the "variable" parameter. But I think ultimately that makes for even more confusion. Best wishes Jeremy > > Fair enough. > -- Jeremy Ruston mailto:jeremy.rus...@gmail.com -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
Re: [tw] Re: [TW5] Possible to show Title in Vertical Tabs?
Am Sonntag, 28. September 2014 21:42:47 UTC+2 schrieb Jeremy Ruston: > > I think both the issues you've raised are quite confusing and unexpected. > As I just noticed :( > The tabs macro issue with the currentTiddler is probably a mistake: I > think it would have been better for the tabs macro to take a "variable" > parameter that defaults to "currentTiddler". Sadly, it's too late to change > now. We could add the "variable" parameter, but it would have to default to > "currentTab" for backwards compatibility. > I just made an experiment. I have several tiddlers tagged "environment". Example names are "Production", "Test", "Demo". Then I have several tiddlers labeled with one of those names. These tiddlers represent "hosts" (Computers). To get some lists, my "environment" tiddler is a template which creates a table of all the "hosts" having a tag of the current title. So all I need in my "Production" (and all the other) tiddler(s) is {{||environment}} and I will get a nice table of all my production hosts. Unfortunately, with this approack, it's not possible to get a tiddler with tabs for each environment, as the "currentTiddler" is not set :( Actually, there is a potential way to resolve it: we could switch to a new > convention and reimplement the tabs macro as "tg-macro" (g === "global > macro", to distinguish from "tm-*" which is used for messages). The new > version could have a different default for the "variable" parameter. But I > think ultimately that makes for even more confusion. > Yes. This sounds very confusing. -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
Re: [tw] Re: [TW5] Possible to show Title in Vertical Tabs?
P.S. I think I found a way to solve - at least my -issue: 1. Create a tiddler setCurrentTiddler <$tiddler tiddler=<>><$transclude/> 2. use tabs like this: <> -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.