That part is working. I’m thinking that I can get the tab list by tagging specific tiddlers with “tabList”, then create a filter to get that list of tiddlers to create the tabs. So if I want a tab for “todo” items, then I’ll tag the todo tiddler with “tabList”.
But then how do I populate the individual tabs, so that when I click the tab I get a list of links?
My end goal is that I can go to any tiddler, and at the bottom I’ll have a set of tabs. If I want to see any meetings that are tagged to the current tiddler, I’ll click the “meetings” tab, for todo items I’ll click “todo”, etc.
Here’s a demonstration of what I’m looking to do. Each image shows a different state for TiddlerA (where a different tab is selected at the bottom). All boxes represent tiddlers.
The fourth slide shows how the tabs themselves are set up. Hopefully this is more clear.
If I follow correctly: at bottom of each tiddler, you’d like to see a row of tabs, including one for each tag that the current tiddler has, and within that tab you’d like to see a list of whatever else is tagged there. (So, it’s a bit like having the tag-pill drop-down effect, but always expanded for whatever tag you click to focus on.)
First, you’ll want to set up a tab template – because otherwise the tab will render the text field of the tiddler that corresponds to the tag. The tab template will look something like this:
I think you’re close, except that I don’t want the current tiddler’s tags, I want the things that are tagged to this tiddler - I think that’s called the “tagging” list? (I’m kind of new to TW.)
For example, if I’m looking at TiddlerA from my example, if I click on the “todo” tab, I want to see todo items that are also tagged with TiddlerA.
This is great, thank you! Now is it possible to adapt it to use the tab-template strategy, so I don’t need to populate the todo, meeting, reference tiddlers (which I’d then need to change in multiple places if I change anything)?
I have been playing with this, but I’m having trouble using the “save-currentTiddler” variable that’s mentioned in the tabs documentation…
Just a tip, the Info button on tiddlers opens up the Info view at the top of each tiddler, there are already tabs that display information about the current tiddler.
In future solutions you could put a tab in the info dropdown to save space on tiddlers.
If you install the link-to-tabs plugin it is easy to open the tiddler for each tab and see the source code, and make use of this as you wish.