List tiddlers with title value in custom field

130 views
Skip to first unread message

paulgilbert2000

unread,
Jun 20, 2021, 9:07:47 PM6/20/21
to TiddlyWiki
Hi ,

I have a Customer filed called "childof"

I am trying to list all tiddlers that has a value in this filed that matches the title field

<$list filter="[childof<currentTiddler>]">

This filter is not returning any values , what am i doing wrong?

TW Tones

unread,
Jun 20, 2021, 10:17:30 PM6/20/21
to TiddlyWiki
Mohamed,

You are testing if the whole field value is equal to currentTiddler.

Perhaps try the Search operator and name the childof field. Perhaps child of is also parent. See TocP for some tools to help.

Tones

paulgilbert2000

unread,
Jun 21, 2021, 9:06:42 AM6/21/21
to TiddlyWiki
Thanks Tones,

 I am curious why does <$list filter="[tag<currentTiddler>]">   works fine ,  and  <$list filter="[childof<currentTiddler>]">   doesnt ?

they are both fields , so why does one filter work and the other does not.
Message has been deleted

Si

unread,
Jun 21, 2021, 9:52:17 AM6/21/21
to TiddlyWiki
Hi Mohamed,

>>> I am curious why does <$list filter="[tag<currentTiddler>]">   works fine ,  and  <$list filter="[childof<currentTiddler>]">   doesnt ?

Because tag[] is a defined operator in TiddlyWiki, and childof[] isn't.

TiddlyWiki treats any unrecognised filter operator as a suffix to the field[] operator. So since childof[] is not an existing operator in TiddlyWiki, it is interpreted as a shorthand for field:childof[].

tag[] is an already existing filter operator, so is not interpreted in this way.

To answer your original question, you probably want the contains[] operator: [contains:childof<currentTiddler>]

paulgilbert2000

unread,
Jun 21, 2021, 6:45:37 PM6/21/21
to TiddlyWiki
Thanks , was not aware of this piece of info

Contains worked ,thanks again
Reply all
Reply to author
Forward
0 new messages