find field with unknown input

49 views
Skip to first unread message

Gerald Weis

unread,
Jan 16, 2020, 4:23:54 AM1/16/20
to TiddlyWiki
Hello Guys,

i have changed the way of programming of my recipe-wiki.

now i have thie field rezeptgruppe one or more tiddlers.

Problem: its an unknown content

<<list-links "[field:rezeptgruppe[previous content]''>>
don't works.

How i can find the field rezeptgruppe without knowing the content?

thanks for help

Mohammad

unread,
Jan 16, 2020, 4:27:09 AM1/16/20
to tiddl...@googlegroups.com
This will work

<<list-links "[has:field[rezeptgrupe]]">>

Means list all tiddlers has a field named rezeptgrupe.

--Mohammad

Mohammad

unread,
Jan 16, 2020, 4:34:03 AM1/16/20
to TiddlyWiki
Original post edited: for email readers.
Note to double quotes.

TonyM

unread,
Jan 16, 2020, 6:13:29 AM1/16/20
to TiddlyWiki
I will just add the way I describe Mohammads instruction

  • has[fieldname] only finds fieldname if it exists and has non blank content 
  • has:field[fielname]  finds fieldname if it exists has any content including empty.
  • fieldname[value] finds a tiddler with a fieldname containing the specific value
Regards
Tony

Mohammad

unread,
Jan 16, 2020, 6:26:45 AM1/16/20
to TiddlyWiki
Added to TW-Scripts

Mohammad

unread,
Jan 16, 2020, 6:33:04 AM1/16/20
to TiddlyWiki

Gerald Weis

unread,
Jan 16, 2020, 7:10:38 AM1/16/20
to TiddlyWiki
thanks guys,

it works great
Reply all
Reply to author
Forward
0 new messages