Why doesn't this list filter work?

44 views
Skip to first unread message

David Gifford

unread,
Feb 6, 2020, 12:28:37 PM2/6/20
to TiddlyWiki
I have the following in a viewtemplate tiddler:

<$list filter="[all[current]backlinks[]] +[all[current]links[]] +[sort[title]]"><$link><$view field="title"/></$link> - </$list>

Desired behavior:

A list of all tiddlers linking to the current, plus all the links contained in the current, sorted by title.

Actual behavior:

Lists all the links contained in the current, sorted by title. Does not include links to tiddlers backlinking to current.

BurningTreeC

unread,
Feb 6, 2020, 12:42:47 PM2/6/20
to TiddlyWiki
Hi David, I think it must be

<$list filter="[all[current]backlinks[]] [all[current]links[]] +[sort[title]]"><$link><$view field="title"/></$link> - </$list>

Mat

unread,
Feb 6, 2020, 12:44:55 PM2/6/20
to TiddlyWiki
<$list filter="[all[current]backlinks[]] +[all[current]links[]] +[sort[title]]"><$link><$view field="title"/></$link> - </$list>

Desired behavior:

A list of all tiddlers linking to the current, plus all the links contained in the current, sorted by title.

I didn't try out anything but:
Verbally you can say "plus" but this is not what the "+" means. The "+" means that this condition should be added i.e whatever comes out of the first filter must now pass through the plus filter, which probably means no tiddlers qualify. You can try to remove the "+" character. 

<:-)

David Gifford

unread,
Feb 6, 2020, 12:58:20 PM2/6/20
to TiddlyWiki
Thanks BurningTreeC! +1 for telling me to remove a +
Reply all
Reply to author
Forward
0 new messages