The currentTiddler
variable is not affected by the tabs
macro. This can put you in trouble if the list of tabs includes tiddlers that depend on the value of the currentTiddler
, for example tiddlers listing children based on its own name. To overcome this problem you can use a TemplateTiddler like the following:
<$tiddler tiddler=<<currentTab>>>
<$transclude mode="block" />
</$tiddler>
<$tiddler tiddler=<<currentTab>>>
<$transclude mode="block" />
</$tiddler>
Typically the tab is just the content of the tab tiddler but it could contain buttons to operate on any tiddler including the story tiddler.
By the way you can use <<storyTiddler>> for the displaying tiddler.
I hope this helps.
Regards
Tony
The storyTiddler variable is set when displaying each tiddler in The story and is not reused as often as currentTiddler so it should be available in any viewed tiddler or the tiddlers or macros within them.
Regards
Tony