1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-16 18:39:54 +00:00

Fix problem with tabs macro changing current tiddler

The problem was introduced in e18d8a8866
This commit is contained in:
Jermolene 2014-07-12 09:07:51 +01:00
parent d5e4b9b5d1
commit 0f78c4afbf
3 changed files with 6 additions and 8 deletions

View File

@ -16,16 +16,12 @@ tags: $:/tags/Macro
<$reveal type="match" state=<<qualify "$state$">> text=<<currentTab>> default="$default$">
<$tiddler tiddler=<<currentTab>>>
<$transclude tiddler="$template$" mode="block">
<$transclude mode="block"/>
<$transclude tiddler=<<currentTab>> mode="block"/>
</$transclude>
</$tiddler>
</$reveal>
</$list>

View File

@ -1,7 +1,7 @@
title: ReleaseHistoryTemplate
<h2><$link ><$view field="title"/></$link></h2>
<h2><$link to=<<currentTab>>><$view tiddler=<<currentTab>> field="title"/></$link></h2>
^^Released <$view field="released" format="date" template="DDth MMM YYYY at 0hh:0mm">TBA</$view>^^
^^Released <$view tiddler=<<currentTab>> field="released" format="date" template="DDth MMM YYYY at 0hh:0mm">TBA</$view>^^
<$transclude/>
<$transclude tiddler=<<currentTab>> />

View File

@ -17,6 +17,8 @@ By default the tab control arranges the tabs horizontally with the content under
|4th |class |Additional CSS classes for the three wrappers DIV of the tab | |
|5th |template |Optional template through which to render the tab content | |
Within the template the title of the current tab is available in the widget variable ''currentTab''.
! Examples
Here is an example of the tabs macro: