Is there a way to have the tabs macro show the title of a tiddler even if it has a caption set?
If not, is there a way I can create something like the tabs macro but without it showing captions?
Is there a way to have the tabs macro show the title of a tiddler even if it has a caption set?
If not, is there a way I can create something like the tabs macro but without it showing captions?
Here’s a typical minimal use of the tabs
macro:
<$macrocall $name="tabs" tabsList="[tag[sometag]]"/>
Note that there are actually quite a few additional macro parameters that you can use (see https://tiddlywiki.com/#tabs%20Macro). Among these parameters is buttonTemplate
, which permits you to override the default caption content displayed on the tab buttons.
For your purposes, start by creating a tiddler (e.g., MyTabsButtonTemplate), containing just:
<<currentTab>>
Then, in your tabs macro, you can write:
<$macrocall $name="tabs" tabsList="[tag[sometag]]" buttonTemplate="MyTabsButtonTemplate"/>
That’s it.
enjoy,
-e
Ah, ok- I wasn’t really sure how to use buttonTemplate, but this works exactly like I needed, thank you!