Hi Arc,
You can use
store.getValue("tiddler title","field name") or
tiddler.fields.fieldname
Some examples:
If you want a list of every tiddler that contains a certain field:
<<forEachTiddler where 'store.getValue(tiddler, "myFieldName")'
write '"[["+tiddler.title+"]] "+store.getValue(tiddler,
"myFieldName")+"\n"' >>
To search for specific field contents:
<<forEachTiddler where 'store.getValue(tiddler, "myFieldName") &&
store.getValue(tiddler,"myFieldName").contains(context.inTiddler.title)' >>
or
<<forEachTiddler where 'store.getValue(tiddler, "myFieldName") &&
store.getValue(tiddler,"myFieldName")=="someValue"'>>
or (e.g., in an mGTD TW):
<<forEachTiddler where
'(tiddler.fields.mgtd_date>"201203010500"&&tiddler.fields.mgtd_date<"201205010500")'
sortBy 'tiddler.fields.mgtd_date'
write '"[["+tiddler.title+"]] "+tiddler.fields.mgtd_date+" just because we
can "+store.getValue("Some Other Tiddler Title","mgtd_date")"\n"' >>
cmari
On Tuesday, April 2, 2013 3:20:01 PM UTC-7, Arc Acorn wrote:
>
> Is there anyway to use the ForEachTiddlerPlugin to make a list of all
> tiddlers based on the content of a custom field?
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.