Toc-tabbed not displaying fields

In the resulting TOC of toc-tabbed-internal-nav or toc-tabbed-external-nav the tiddler on the right side isn’t displayed properly (I guess just the text field - empty in my case - is shown). See the tiddler “Sauce à spaghetti” below.

Is there a way to tell this macro to show the tiddler using the template defined for it?

Thank you.

Yes, you can include a template attribute:

<$macrocall
	$name="toc-tabbed-internal-nav"
	...
	template="MyTemplate"
/>
1 Like
<$macrocall
	$name="toc-tabbed-internal-nav"
	...
	template="MyTemplate"
/>

and… if your tiddlers use specific templates based on the $:/ControlPanel > Info > Advanced > Cascades setup, you can define MyTemplate to use the corresponding ViewTemplateTitleFilter and ViewTemplateBodyFilter cascades, like this:

!!<$transclude $tiddler={{{ [<currentTiddler>] :cascade[all[shadows+tiddlers]tag[$:/tags/ViewTemplateTitleFilter]!is[draft]get[text]] }}}/>
<$transclude $tiddler={{{ [<currentTiddler>] :cascade[all[shadows+tiddlers]tag[$:/tags/ViewTemplateBodyFilter]!is[draft]get[text]] }}}/>

-e

2 Likes