Hi Steve

> How/where  to insert tagstring.readBracketedList($1) into a call to
> forEachTiddler, where $1 is the tagstring?
>
> <<forEachTiddler where 'tiddler.tags.contains("$1")'
> sortBy 'tiddler.title'


> I am using a function kindly provided by Måns which uses the call to
> forEachTiddler to generate a list of tiddlers with the specified tag.
> In
> the example below case to get all tiddlers tagged with 'kicks'.
>
> <<tiddler MeMoList with: kicks>>
>
> What I would like to be able to do is generalize the function to
> return a list of tiddlers that match one or more tags. In
> the example below case to get all tiddlers tagged with 'kicks' or
> 'terms' or 'basic'.
>
> <<tiddler MeMoList with: 'kicks terms basic'>>

This seems to work:
[[Memo2]]
<<forEachTiddler where 'tiddler.tags.containsAny(["$1"])'

and in another tiddler:
<<tiddler MeMo2 with: [[kicks","terms","basic]]>>

Cheers Måns Mårtensson

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to