Pieter-Michiel,
Have a look at what I did in my
prepared codemirror edition it places a tag pill on every tiddler that is acting as a tag, so you can see its children.
If you want a custom toc layout it may be better to build your own recursive macros as discussed in a number of topics.
Here is an example of my own;
\define each-other-level(filter)
<li><$link to=<<currentTiddler>> ><$text text=<<currentTiddler>>/></$link></li>
<ul>
<$list filter="$filter$">
<<each-other-level $filter$>>
</$list>
</ul>
\end
\define first-level(filter)
<ul>
<$list filter="$filter$">
<<each-other-level $filter$>>
</$list>
</ul>
\end
Start in TableOfContents<br>
<$tiddler tiddler="TableOfContents">
<<first-level "[is[current]tagging[]]">>
</$tiddler>
Note: It may not be protected from infinite loops.
Now where the items are listed in the `<li> tags` change the line to
<li><$macrocall $name=tag tag=<<currentTiddler>>/></li>
and I think you have what you are after.
You may want to hide the pill for those items with no tags.
However in my
prepared codemirror edition the tag pills are useful, I plan to add a new here feature as well.
Regards
Tony
On Friday, June 5, 2020 at 12:03:29 AM UTC+10, Pieter-Michiel Geuze wrote:
Friends,
I am very happy working with TW and I have been finding many different ways to use Table of Contents (ToC).
What I am looking to do is to create a ToC not of individual Tiddlers but of Tags, preferabbly Tag Pills.
I believe that this will allow me to see all the tag categories within a tag, click the tag and then see all of the tiddlers from that tag.
If there is another way to do this, please let me know.