How to get $list of all tiddlers with text "nsort[price]" in text field?

32 views
Skip to first unread message

Siniy-Kit

unread,
Apr 5, 2020, 11:10:27 AM4/5/20
to TiddlyWiki
I try  different variants 

<$list filter="[text['nsort[price]']]">  <<currentTiddler>></$list>

but
Filter error: Missing [ in filter expression


Eric Shulman

unread,
Apr 5, 2020, 11:38:54 AM4/5/20
to TiddlyWiki
You can't use a filter parameter value that contains any of the special characters used for defining filter syntax, such as square brackets.

To work around this, you can use a variable that contains the desired parameter value.  For example:
\define findthis() nsort[price]
<$list filter="[text<findthis>]">  <<currentTiddler>></$list>
or
<$vars findthis="nsort[price]">
<$list filter="[text
<findthis>]">  <<currentTiddler>></$list>
</$vars>

enjoy,
-e
Reply all
Reply to author
Forward
0 new messages