Tabbed interface

I have been playing around with using the tabs macro. Seems to work a treat. One issue though, it would appear that if a tiddler pointed to by a tab has a viewtemplate, the viewtemplate does not appear to be applied when the content is rendered in the tab area.

Anyone else see this behaviour?

Any other issues with using tabs?

bobj

If you look at the bottom of the tabs macro documentation you see the tab transcludes the named tab tiddler as follows; via a template tiddler.

<$tiddler tiddler=<<currentTab>>>
<$transclude mode="block" />
</$tiddler>
  • Note it sets the current tiddler to the current tab

You can alter this todo what ever you want so a quick explore finds the following view template default $:/core/ui/ViewTemplate/body/default you could use that but it is still only the body.

So you need to decide which elements in the standard tiddler view template youn want to include in your tabs. If you wanted to include all you could use the “Story Tiddler” cascade default $:/core/ui/ViewTemplate

TIP: when working on template tiddlers it is wise to set the field code-body=yes so you dont get infinite loops when not edioting the template.

So perhaps tell us more about what you want to appear in your tabs.

Also consider using the toc tabbed external toc macro here

1 Like

Thanks @TW_Tones

Bobj