Filter using tags

57 views
Skip to first unread message

Patrick Gorman

unread,
Jul 9, 2019, 7:34:40 PM7/9/19
to TiddlyWiki
Hi, I'm Patrick...I'm a student of Magenta Ann's design write studio class. She told me to post this question on here so I can get used to using this group...

I'm trying to link back to a tiddler based on tags, but I only want the link to appear once. If there are multiple tags on one tiddler that would cause a link back to the My Cats tiddler, I only want the link to appear once. 

Also, is it possible to put more than one tag in a list filter?


<$list filter="[is[current]tag[ImgDoug]]">
[[Back to My Cats|My Cats]]

</$list>

Please be gentle, I'm still learning.

Mark S.

unread,
Jul 9, 2019, 8:34:02 PM7/9/19
to TiddlyWiki
The problem is that you have a separate list widget for every possibility. You can include more than one filter run in a filter expression (look for "filter run" on TiddlyWiki.com).

Here's how you combine two of your tags:

<$list filter="[is[current]tag[ImgDoug]] [is[current]tag[ImgGrey]]">

[[Back to My Cats|My Cats]]

</$list>

You could repeat for all the tags for which you want to go back to "My Cats". Note that the filter expression
will collapse the output of the filter runs into just one unique set. Sometimes this is a problem, but in this case it's
what you want.

Good luck!

Patrick Gorman

unread,
Jul 10, 2019, 4:07:51 PM7/10/19
to TiddlyWiki
That worked. Thank you very much, Mark!
Reply all
Reply to author
Forward
0 new messages