list tiddlers by criteria

42 views
Skip to first unread message

stuartt...@gmail.com

unread,
Apr 27, 2025, 8:22:35 AMApr 27
to TiddlyWikiClassic
hi folks.
could someone advise please: I need to display tiddlers (title plus contents) that have two specific tags. how would I do this? Thank you.

Yakov

unread,
Apr 29, 2025, 11:31:43 AMApr 29
to TiddlyWikiClassic
Hi Stuart,

there's a number of ways to get this, but since you'd like both custom filtering and custom display, I'd go with ForEachTiddlerPlugin (my latest updated version is here):

<<fet
  where 'tiddler.tags.includes("tag 1") && tiddler.tags.includes("tag 2")'
  write '`!${tiddler.title}\n${tiddler.text}\n`'
>>

With ExtraFiltersPlugin, you can do this using filters (which will also work with the list macro, but which has limited options to customize the view):

<<fet
  where '[tag[tag 1]] [and[tag[tag 2]]'
  write '`!${tiddler.title}\n${tiddler.text}\n`'
>>

(instead of template literals `!${tiddler.title}\n${tiddler.text}\n` , you may prefer the old JS syntax "!" + tiddler.title + "\n" + tiddler.text + "\n"`)
Note that the line inside "write" calcs wiki syntax, so you can change it to whatever you want.

воскресенье, 27 апреля 2025 г. в 15:22:35 UTC+3, stuartt...@gmail.com:

stuartt...@gmail.com

unread,
Jul 25, 2025, 2:16:09 AMJul 25
to TiddlyWikiClassic
foreachtiddler does this fantastically, Thank you.
Reply all
Reply to author
Forward
0 new messages