So, I’m working on a small side-goal I set for myself way back, where all tiddlers would automatically have tabs for specific content.
I’ve found a bit of time today to work on this and the end result is pretty close to what I was aiming for, but there’s a few things I haven’t managed to get to work yet.
Tiddler 1:
title: stylesheet
tags: $:/tags/Stylesheet
body: """
.tc-tiddler-body {display: none;}
"""
Tiddler 2:
title: New Tiddler
tags:
body: """
this text is shown in the only tab that appears in the ViewTemplate
"""
Tiddler 3:
title: Tabs template tiddler
tags: $:/tags/ViewTemplate
body: """
<<tabs "[<currentTiddler>] [!has[draft.of]tag<currentTiddler>tag[Section (Tiddler)]]">>
"""
list-before: $:/core/ui/ViewTemplate/body
My end goal is for every tiddler to have at least 2 tabs, one for all tiddlers tagged with the currentTiddler, listed in a bulleted list-links, the second tab being the body text of the tiddler, and any tabs after that are added if they are also tagged with the tag “Section (Tiddler)”
1. How can I set the tab showing the body of the currentTiddler to say “body” and set that to the default tab, but not using the caption field, so when it’s used as a tab for another tiddler it doesn’t show as ‘body’ there as well
2. is there a filter I can make where one of the tabs shown a tab that titled “all” and lists every tiddler tagged with the current tiddler? or do I just need to make a template tiddler for that specific tab?
Edit: I just made two more template tiddlers instead, but that does still leave me with the 3rd and 4th question.
-
Is there a way I can select specific fields of a tiddler to turn into tabs and use the field content as the tab text? ie “[has[meta]meta[]]” where it shows the meta-notes if the tiddler has them
-
Is there a way I can have the tabs collapse in place of the body text using the fold tiddler button?