Hello Tobias,

I have modified the tabs macro this way for easier comparison here is a 
diff https://www.diffchecker.com/tXBz8Q8L):

\define tabs-cool(tabsList,default,state:"$:/state/tab",class,template)
<div class="tc-tab-set $class$">
<div class="tc-tab-buttons $class$">
<$list filter="$tabsList$" variable="currentTab"><$set 
name="save-currentTiddler" value=<<currentTiddler>>><$tiddler 
tiddler=<<currentTab>>><$button set=<<qualify "$state$">> 
setTo=<<currentTab>> default="$default$" selectedClass="tc-tab-selected" 
tooltip={{!!tooltip}}>
<$tiddler tiddler=<<save-currentTiddler>>>
<$set name="tv-wikilinks" value="no">
<$transclude tiddler=<<currentTab>> field="caption">
<$macrocall $name="currentTab" $type="text/plain" $output="text/plain"/>
</$transclude>
</$set></$tiddler></$button></$tiddler></$set></$list>
</div>
<div class="tc-tab-divider $class$"/>
<div class="tc-tab-content $class$">
<$list filter="$tabsList$" variable="currentTab">

<$reveal type="match" state=<<qualify "$state$">> text=<<currentTab>> 
default="$default$">

<$tiddler tiddler=<<currentTab>>>
<$transclude tiddler="$template$" mode="block">

</$transclude>
</$tiddler>
</$reveal>

</$list>
</div>
</div>
\end


Basically I have added a $tiddler widget to set the currentTiddler to the 
current tab before the template transclusion. I have also removed the 
second transclusion of the current tab. To be honest, I never saw that way 
of using a template: transcluding the template and then transcluding the 
tiddler inside it.

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9708ed08-222c-4de1-bb2e-2136deaa165d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to