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>]

On Monday, 21 June 2021 at 14:06:42 UTC+1 [email protected] wrote:

> 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.
>
> On Monday, June 21, 2021 at 4:17:30 AM UTC+2 TW Tones wrote:
>
>> 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
>>
>> On Monday, 21 June 2021 at 11:07:47 UTC+10 [email protected] wrote:
>>
>>> 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?
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/90943959-07c2-48de-861a-8c27dcf0609cn%40googlegroups.com.

Reply via email to