FIlter TIderls with field value

139 views
Skip to first unread message

paulgilbert2000

unread,
Apr 25, 2021, 10:36:02 PM4/25/21
to TiddlyWiki

HI ,

i am trying to list a number of tiddlers that have a specific value in a field i have created

so basically I have a field  called " status " that exists in all tiddlers in my wiki , and usually  put in the field value text like , inprogress , pending etc..

how can i view all tiddlers that have a specific value i , like for example "in progress  "

i know how to filter with Tags , but i cant filter with a field value , is this possible ?

TW Tones

unread,
Apr 25, 2021, 11:02:58 PM4/25/21
to TiddlyWiki
Try this example filter

{{{ [all[]has[fieldname]] }}} if the fieldname contains a non blank value

and use

{{{ [has:field[fieldname]] }}} for field exist with value or empty.

Tones

Michael Wiktowy

unread,
Apr 26, 2021, 7:16:11 AM4/26/21
to TiddlyWiki
To build on Tones' reply ... I think you wanted to find tiddlers with a specific value in the status field.

See the field Operator for filters: https://tiddlywiki.com/#field%20Operator

So to extend Tones example:

{{{ [all[]field:status[specific status value]] }}}

or since all unknown operators are assumed to be fields (and to use your specific search example) you can use the short form:

{{{ [all[]status[in progress]] }}}

I think that should get you what you want.

/Mike

paulgilbert2000

unread,
Apr 26, 2021, 9:34:40 AM4/26/21
to TiddlyWiki
Thank you Mike /Tones ,

this works :)

paulgilbert2000

unread,
Apr 26, 2021, 4:07:15 PM4/26/21
to TiddlyWiki
ok sorry to come again

it does work on its own , however cant seem to get it work in my existing code

i originally had it querying tags
Capture2.PNG
I changed it , to look for status instead ,but obviously i did something wrong , is it possible to incorporate  {{{ [all[]status[inprogress]] }}}  within a List filter macro
Capture3PNG.PNG

Michael Wiktowy

unread,
Apr 26, 2021, 9:32:18 PM4/26/21
to TiddlyWiki
You can certainly use this filter in lists but you have a bit too much going on in there at the moment.

The {{{ [ ] }}} construct is called Filtered Transclusion but all you need is the filter part in a link widget. So you only need to include the [status[in progress]] filter part and not the {{}} tranclusion part.

I don't think that the all[] was doing much in any case.

/Mike

paulgilbert2000

unread,
Apr 26, 2021, 9:49:46 PM4/26/21
to TiddlyWiki
thanks mike

i removed the transclusion , now i am getting this  error ,but not sure where this missing bracket should be?
Capture5.PNG

Michael Wiktowy

unread,
Apr 26, 2021, 9:57:30 PM4/26/21
to TiddlyWiki
The error message is a bit misleading. You have too many nested square brackets ... I think that the filter should be [!has[draft.of]status[in progress]sort[created]]

/Mike

paulgilbert2000

unread,
Apr 26, 2021, 10:03:47 PM4/26/21
to TiddlyWiki
Hi Mike,

Thank you , this works, now the only  displayed tiddlers are the ones matching the criteria 

really appreciate your help and patience :)
Capture6.PNG
Reply all
Reply to author
Forward
0 new messages