Something like this may result in the kind of spacing you want and
pre-detect grandchildren. Perhaps you don't even want the top-level to show
if there are no grand children?
The <$list filter="[taglimit[1]]"> listwidget here is used to
detect if there are grandchildren. It's limited to 1
Its been awhile since I have used TW5 and its coming back to me slowly...
I have currently got down to the following code:
\define tagtable(Tag)
<$list filter="[tag[$Tag$]]" variable="Parent">
<$list filter="[tagsort[]]" variable="Child">
<$list filter="[tagsort[]]"
Thank you Diego, that has certainly put me on the correct path! If I
wanted to take this to the next stage, how could I change the output so
that it would be presented as a outline structure:
- Y
- Z1
- Z2
- Q
- P1
- P2
On Tuesday, 24 July 2018 19:10:41
Hey Stuart,
This code seems to work for me:
<$list filter="[all[current]tagging[]]" variable="child">
<$list filter="[tag]" variable="grandchild">
<> has grandchild <>
You can test it on https://tiddlywiki.com/ by making 4 tiddlers:
- titled X, with the content above
4 matches
Mail list logo