Thanks! 在 2020年5月14日星期四 UTC+8上午8:12:04,Soren Bjornstad写道: > > [all[current]backlinks[]] > > should do the trick. The $list widget will display its contents if and > only if there are results in the filter, so in this case you get nothing if > there are no backlinks. > > If you're not sure where backlinks[] comes from, the filter operators > <https://tiddlywiki.com/#Filter+Operators> tiddler in the documentation > is a great reference. > > On Wednesday, May 13, 2020 at 6:22:58 AM UTC-5, yrosgi L wrote: >> >> 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/d6bf9fd2-752a-4b83-b7c3-885a227cd159%40googlegroups.com.

