Damon, you solve this by making the state tiddlers title based on the current tiddler title. Here's the general idea:
\define state() state/footer/$(currentTiddler)$ <$button> <$action-setfield $tiddler=<<state>> text="xxx"/> x </$button> You might also want to check out the qualify macro but I don't think you need this here. <:-) On Wednesday, April 29, 2020 at 11:59:36 PM UTC+2, Damon Pritchett wrote: > > Hello all, > > I've been playing around for the last couple of days experimenting with > adding a viewTemplate with a tabbed interface as a footer to tiddlers > tagged with a certain tag. I've been able to make this sort of work with > the tab macro and I've also used the tabber macro of Mat's, but both > solutions have a couple of things that I'm not quite satisfied with. Using > the tabber macro, the tab last visited on a given tiddler is the one that > is selected by default when I open the next tidder. Also with tabber, if I > have two tiddlers open at the same time I can't have two different tabs in > each tiddler since each tab has a single state tiddler associated with. I > solved those problems by using the built-in tab macro, but because I have > nearly two thousand of the tiddlers in question, I'm going to get nearly > two thousand state tiddlers eventually. I've also noticed that the first > time I open any given tiddler, there is no tab selected. I'm assuming > that's because no state tiddler has been created yet. I've also tried using > CSS only tabs, which works fine when only one tiddler's open, but, if two > or more are open, only the most recently opened one has working tabs. > > I'm looking for any other suggestions on how to make this work. So far, I > like using the built-in tab macro best, but I worry about performance after > a few hundred (or whatever the number might be) state tiddlers are created. > Is this even a concern? > > Many thanks, > > Damon > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/91166ef1-d619-4c20-bde2-dd20dce30789%40googlegroups.com.

