mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-22 14:00:03 +00:00
Fix problem with tabs macro changing current tiddler
The problem was introduced in e18d8a88661a1c2caa1b722841747c75ca6af437
This commit is contained in:
parent
d5e4b9b5d1
commit
0f78c4afbf
@ -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>
|
||||
|
@ -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>> />
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user