How to transclude only certain tags of listed tiddlers?

49 views
Skip to first unread message

Surya

unread,
Mar 31, 2018, 9:37:21 AM3/31/18
to TiddlyWiki
Hello @all,
I want to list tiddlers with a certain tag.
And the listed tiddlers should show their tags (in the tag-style with their colours). But not all their tags, some tags should be not shown.
How to exclude them?

I have it written like this now:

<$list filter="[tag[tag1]]"> <$link>''<<currentTiddler>>'' {{||$:/core/ui/ViewTemplate/tags}} <br/><br/><br/></$link></$list>

Have a nice day :-)
Surya

Jed Carty

unread,
Mar 31, 2018, 10:00:59 AM3/31/18
to TiddlyWiki
If you can make a filter that gives all the tags you want to exclude you can use something like this:

<$list filter="[tag[tag1]]"> <$link>''<<currentTiddler>>'' <$list filter='[is[current]tags[]] -[[excludeTag1]] -[[excludeTag2]]'><<tag>></$list> <br/><br/><br/></$link></$list>

You can have -[[tagname]] for each tag if you know what they are all and can list them, or you can have something like -[prefix[$:/]] that excludes all the system tags.

Surya

unread,
Mar 31, 2018, 11:08:20 AM3/31/18
to TiddlyWiki
PERFECT :-))
Thanks!
Reply all
Reply to author
Forward
0 new messages