Breadcrumbs path ( list of ancestors )

I want to create hierarchy of tiddlers, using tags or custom fields

I need to show the full path within this hierarchy at the top of every tiddler

I tried to use ancestors filter

https://yaisog.tiddlyhost.com/#%24%3A%2Fplugins%2Fyaisog%2Fancestors-filter

but it does not work for me, seems like I do not understand how to use it for this situation.

<$list filter="[<currentTiddler>ancestors[]is[tiddler]reverse[]]" join="->"> <$link><<currentTiddler>></$link> </$list>

I use this in a tiddler tagged with $:/tags/ViewTemplate in a tag-based hierarchy (child has a tag that’s the name of parent).

It works fine for a strict tree but has side effects (shows more than just the chain back to root) as long as the tree turns to a graph (a child has more than one parent tag). I suppose some additional combing of the resulting list above is needed, like chopping off everything left as soon as the root node of the hierarchy is reached for the first time, but I have very few tiddlers with multiple parents, so I didn’t bother to implement it.

This subject has being raised many times, search for breadcumbs here in talk.tiddlywiki, the kin filter although harder to use can allow much more sopisticated analysis or heirachical data like geneology. If you generate a list of ansestors you can then generate the decendants from the top ansestor and do many things by using filters to add or substract from one list and the other.

  • For example think of how you may list cousins.
  • We have recently being discussing a more advance TOC (table of contents) search for that as well.

You may have a closer look at my Trails Plugin

You can drag & drop import it at tiddlywiki.com so you will see how it works. There is no restart needed. It should work out of the box with the default TableOfContent setting.

eg: Go to the tabs macro after you imported it.