How can I set a default value to open with toc-tabbed-external-nav?

Hi everyone,

I’ve successfully created a list of contents inside a tiddler by using the following content:


<div class="tc-table-of-contents">

<<toc-tabbed-external-nav 'Lista de Tiddlers'>>

</div>

However, even though it’s working fine. The default value is the tabs closed…

https://drive.google.com/file/d/1gR1JZZrePG-X-U3oDKTKSxibtExKMCoM/view?usp=sharing

I’d like to make it open on the Linux tab by default as the following:

https://drive.google.com/file/d/1dtFZQWFFrxWJid30mfKVveZyHHnKoW0S/view?usp=sharing

I’ve found a documentation page saying that toc-tabbed-internal-nav accepts some parameters, but I didn’t manage to make it work… How can I make this tiddler open inside a specific tab? The main purpose would be opening it as default, as shown on the last image…

Quick tip,

The toc macros see $:/core/macros/toc set a tiddler with the selected tiddler eg; toc-tabbed-external-nav selectedTiddler:"$:/temp/toc/selectedTiddler"

My guess is if you create a button to open your toc tiddler and first set this value with the desired tiddler it will open it. untested!

1 Like

Thanks!

In my case, I’ve changed the selectedTiddler on $:/core/macros/toc to selectedTiddler:"$:Linux" and it worked fine for what I needed. :slight_smile: