Help with lists & filters

72 views
Skip to first unread message

Bartosz Wilinski

unread,
Feb 20, 2021, 7:53:21 AM2/20/21
to TiddlyWiki

Hello there.

I have two questions:
  1. Is there a way to exclude the tag from displaying in a custom list?
  2. Is it possible to display any part of TOC using list widget?
Broader explanation. For some reason or another, part of my TOC looks like this (for convenience I will put tags in square brackets):
  • Example [TOC]
    • X [Example]
      • Tiddler A [X] [Y] [Master Tag]
      • Tiddler B [X] [Z] [Master Tag]
    • Y [Example]
      • Tiddler A [X] [Y] [Master Tag]
      • Tiddler C [Y] [Z] [Master Tag]
    • Z [Example]
      • Tiddler B [X] [Z] [Master Tag]
      • Tiddler C [Y] [Z] [Master Tag]
Simple non-linear mulit-categorisation. Or something.

I would like to make list of tiddlers A-C, that display tag-categories (X, Y, Z) in same time. Doable:

``html
<$list filter="[tag[Master tag]sort[title]]">
<$link/>
{{||$:/core/ui/ViewTemplate/tags}}
</$list>
```

But maybe there is a way to display all tags, but skip only Master Tag?

Or maybe filter could somehow be based on TOC, ommiting a need for Master Tag?

I would be grateful for your advice.

-Bartosz

Bartosz Wilinski

unread,
Feb 20, 2021, 7:55:02 AM2/20/21
to TiddlyWiki
Codeblock did not work :(

amreus

unread,
Feb 20, 2021, 8:34:04 AM2/20/21
to TiddlyWiki
Maybe this:

 <$list filter="[tag[Master]sort[title]]">
<$link/><ul>
<$list filter="[<currentTiddler>tags[]![Master]]" variable=tagname>
<li><<tagname>></li>
</$list>
</ul>
</$list>

Bartosz Wilinski

unread,
Feb 20, 2021, 10:44:08 AM2/20/21
to TiddlyWiki
Perfect. Thank you very much.

But would it be possible to display tags as tag pills?

amreus

unread,
Feb 20, 2021, 11:04:46 AM2/20/21
to TiddlyWiki
Sure in place of <<tagname>> use:

<$macrocall $name=tag tag=<<tagname>>/>

Bartosz Wilinski

unread,
Feb 20, 2021, 11:15:30 AM2/20/21
to TiddlyWiki
For some reason your proposition displays tiddler's name in tag pill.

Fortunatelly this seems to work:

```
<<tag $(tagme)$>>
```
Reply all
Reply to author
Forward
0 new messages