Is it possible to create buttons (or other one-click mechanisms) to filter tiddlers?

59 views
Skip to first unread message

Wpq

unread,
Jul 6, 2020, 7:35:50 AM7/6/20
to TiddlyWiki
I am reading about tiddlers and made one specific form my home page. I also saw that they are available for use in Advanced Search.

Is there a way to link a filter to a button (or anything one-click) to have a set of used tiddlers? 

One of the solutions whihc I was hoping for would be to use filters when writing a tiddler, to have that diddler as the "dispatcher", something like a "table of contents" for my content. For instance a list such as 
  • tiddlers tagges with "pro"
  • ones tagged with "perso"
  • last 10
  • ...
In other words: where can I use filters beyond the configuration of the home page and advanced search?

Saq Imtiaz

unread,
Jul 6, 2020, 7:39:35 AM7/6/20
to TiddlyWiki
Have a look at the ListWidget 

Wpq

unread,
Jul 6, 2020, 7:49:07 AM7/6/20
to TiddlyWiki
Thank you very much - this is exactly what I was looking for. 
I have a problem, however, because the documentation is not clear about WHERE to use <$list>. Sorry if this is obvious, I am still struggling with some basic concepts.

Would you know of a place where <$list> is actually used so that I can have an idea where it is supposed to land on the page?

Saq Imtiaz

unread,
Jul 6, 2020, 7:54:16 AM7/6/20
to TiddlyWiki
You can use it anywhere you can use wiki text.

Best way to learn is to try a list widget in a tiddler.
For example:

<$list filter="[tag[pro]]"/>

Wpq

unread,
Jul 6, 2020, 8:04:20 AM7/6/20
to TiddlyWiki
This is what I tried first (with the tag "journal", I have a test tiddler with that tag), but there is nothing on the output: https://i.imgur.com/mNOwiGl.png and after saving: https://i.imgur.com/ZwbHA4t.png

Saq Imtiaz

unread,
Jul 6, 2020, 8:09:27 AM7/6/20
to TiddlyWiki
Are you sure you have tiddlers tagged "journal"? 
Note that tags are case sensitive.

Try this at tiddlywiki.com

<$list filter="[tag[HelloThere]]"/>

Wpq

unread,
Jul 6, 2020, 8:12:37 AM7/6/20
to TiddlyWiki
You are absolutely right - I had Journal (capitalized).
This is great, I will test all this.

I had no idea about ToddlyWiki, it is an amazing tool.

Thanks a lot.

TW Tones

unread,
Jul 6, 2020, 8:13:54 AM7/6/20
to TiddlyWiki
WPQ,

It is amazing.

There are already a range of toc macros available, See https://tiddlywiki.com/#Table-of-Contents%20Macros

You can drag and drop this tiddler ont your wiki to start, 
Then tag the top level tiddlers with TableOfContents, see the contents tab in the sidebar
Then use the new here button tiddlers to add children to the table of contents.

Regard
Reply all
Reply to author
Forward
0 new messages