How to get a "Field Variables"?

96 views
Skip to first unread message

PLATO

unread,
Aug 1, 2019, 5:30:36 AM8/1/19
to tiddl...@googlegroups.com
I want to call the value of field, how to get it ?


<$list filter="[field:book_title[AAAAA]] -[title[Manage Books]]+[sort[created]]">

AAAA =a field variables,not field's name.

Snipaste_2019-08-01_17-44-11.png

Mat

unread,
Aug 1, 2019, 5:58:03 AM8/1/19
to TiddlyWiki
Maybe

<$list filter="[{!!AAAAA}] -[title[Manage Books]]+[sort[created]]">

<:-)

PLATO

unread,
Aug 1, 2019, 6:37:33 AM8/1/19
to TiddlyWiki

Can't work.

[{!!AAAAA}] is incorrect

在 2019年8月1日星期四 UTC+8下午5:58:03,Mat写道:

Mat

unread,
Aug 1, 2019, 6:43:22 AM8/1/19
to TiddlyWiki
Sorry, I meant [{!!book_title}]

<:-)

PLATO

unread,
Aug 1, 2019, 9:50:02 AM8/1/19
to TiddlyWiki
if [+{  , Can't work.

在 2019年8月1日星期四 UTC+8下午6:43:22,Mat写道:
Sorry, I meant [{!!book_title}]

<:-)

Jed Carty

unread,
Aug 1, 2019, 9:57:56 AM8/1/19
to TiddlyWiki
It does work, that is how you reference a field inside a filter.

Put this in the HelloThere tiddler on tiddlywiki.com to see that it works.

<$list filter='[{!!tags}]'>

</$list>

Mat

unread,
Aug 1, 2019, 10:02:02 AM8/1/19
to TiddlyWiki
[{!!book_title}] should work, it is a standard syntax (did you test it?)

you can also do

[<currentTiddler>get[book_title]]

If none of these work, I think you will need to explain your question again.

Also, in your original statement

<$list filter="[field:book_title[AAAAA]] -[title[Manage Books]]+[sort[created]]">

note that [title[Manage Books]] is the same as writing only [[Manage Books]]

<:-)

PLATO

unread,
Aug 2, 2019, 1:24:08 AM8/2/19
to TiddlyWiki
Mat,Thanks your Reply!

I made a screenshot, 
<$list filter="[field:book_title[{!!book_title}] -[[Manage Books]]+[sort[created]]">

I don't know how to do it. 😢

在 2019年8月1日星期四 UTC+8下午10:02:02,Mat写道:
Snipaste_2019-08-02_13-21-16.png

Mat

unread,
Aug 2, 2019, 6:34:25 AM8/2/19
to TiddlyWiki
Copy-paste this:

<$list filter="[{!!book_title}] -[[Manage Books]] +[sort[created]]">
<$transclude/>
</$list>

Note: the !! means that it is the field. So doing {{!!book_title}} transcludes the field contents. Instead doing [{!!book_title}] transcludes the contents and makens them into a filter item.
Note: that you must always close the widget, i.e </$list> or you can get errors.

<:-)

PLATO

unread,
Aug 2, 2019, 7:42:46 AM8/2/19
to TiddlyWiki
Mat,Thanks!
it's work! 👍 😊 😊

在 2019年8月2日星期五 UTC+8下午6:34:25,Mat写道:
Reply all
Reply to author
Forward
0 new messages