Issue with Macro "toc-tabbed-internal-nav"

Hello forum,

I use this code in 2 tiddlers to show different list:

<style>
.colortext {
   font-variant:small-caps;
   color: rgba(255, 201, 102, 0.8);}
</style>

<$macrocall
	$name="toc-tabbed-internal-nav"
	tag="Info"
        sort="sortan[]"
	selectedTiddler="$:/temp/toc/selectedTiddler"
	unselectedText="<p>@@.colortext ← Thema wählen@@</p>"
	missingText="<p>@@.colortext Tiddler fehlt...@@</p>"
/>

In Tiddler 1 all listed with tag="Info"

or the list with tag="Test" in Tiddler 2.

When I open first Tiddler 1 and select eg Test 10

and than open Tiddler 2, initial content of Tiddler 1 is shown:

Choosing Test 6 it will show the its content.
grafik

How can this be solved, so that I always see initial this
grafik

Thanks
Stefan

The problem is that both instances are using the save tiddler to store the currently selected tiddler value:

selectedTiddler="$:/temp/toc/selectedTiddler"

Instead, try this:

selectedTiddler=<<qualify "$:/temp/toc/selectedTiddler">>

The <<qualify>> macro will automatically append a “magic number” to the selectedTiddler title, so that each instance of the <<toc-tabbed-internal-nav>> macro will save it’s current state info into separate tiddlers.

enjoy,
-e

Thanks @EricShulman - works perfect! :+1: