Field Values

129 views
Skip to first unread message

Chems

unread,
Jun 27, 2019, 6:33:22 AM6/27/19
to TiddlyWiki
Hi,

I have a bunch of tiddlers all with the same tag with a field called "ingredient".
Now I want to have a tiddler, which displays the value of the "ingredient" from all tiddlers with the tag.

It should look like this:
Potatoes
Carrots
...

As I have multiple tiddlers with the same tag, and the same ingredient, I want the list to only show the ingredient one time. 
Not like this:
Carrots
Carrots
Carrots
Potatoes

Does anybody know how I can achieve this?
Thanks in advanced!

TonyM

unread,
Jun 27, 2019, 6:45:58 AM6/27/19
to TiddlyWiki
Chems

Reading a little between the lines I think you need the each operator

<$list filter="[tag[food]each[ingredient]]">

</$list>
Above untested


Regards
Tony

Chems

unread,
Jun 27, 2019, 7:02:39 AM6/27/19
to TiddlyWiki
hey thanks.

My problem is that it will always display the name of the tiddler.
But I want to display the value of the field.

Chems

unread,
Jun 27, 2019, 7:18:16 AM6/27/19
to TiddlyWiki
I Think I got it with:

{{{ [tag[]each[]get[]sort[title]] }}}


Ty anyway!!

TonyM

unread,
Jun 27, 2019, 7:19:55 AM6/27/19
to TiddlyWiki
Only want a list of ingredients?

<$list filter="[tag[food]each[ingredient]get[ingredient]]">

</$list>

<$list filter="[tag[food]
get[ingredient]]">

</$list>
Again untested

Regards
Tony

Mohammad

unread,
Jun 29, 2019, 1:09:42 AM6/29/19
to TiddlyWiki
Added to TW-Scripts
Reply all
Reply to author
Forward
0 new messages