Hi, Eric. May I ask one more detail about the $list filter that how to
check whether a tiddler has backlinks?
Thanks
在 2020年5月12日星期二 UTC+8上午9:37:47,Eric Shulman写道:
>
> On Monday, May 11, 2020 at 5:51:14 PM UTC-7, yrosgi L wrote:
>>
>> I have tried to add the source field to the view template with following
>> text:
>>
>>> source: {{!!source}}
>>>
>> when the source field is empty, it just display "source:" at the bottom.
>> I hope that the snippet above only display while source field is no empty.
>>
>
> There are several ways to test to see if there is a source field. Here's
> one:
>
> <$list filter="[<currentTiddler>has[source]]">
> source: {{!!source}}
> </$list>
>
> The has[...] filter checks to see if the specified field is *non-empty*.
> If the field does not exist or is empty, the body of the $list widget is
> completely skipped. Thus, the "source:" label is only displayed when there
> is an actual value to show.
>
> enjoy,
> -e
> Eric Shulman
> TiddlyTools.com: "Small Tools for Big Ideas!" (tm)
> InsideTiddlyWiki - http://TiddlyTools.com/InsideTW
>
--
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/5247c5ba-e732-4dcc-9cb1-93b5e9d1fbd8%40googlegroups.com.