> 'tiddler.tags.containsAny(["TaskToDo","TaskOpen","TaskDone"])'
>
> I'd like to replace everything inside parenthesis
> (["TaskToDo","TaskOpen","TaskDone"]) with text from a tiddler called
> "Filter".
'tiddler.tags.containsAny(store.getTiddlerText("Filter","").split("\n"))'
store.getTiddlerText() retrieves the source text from a tiddler named
"Filter" (with fallback to blank text if the tiddler does not exist).
This text is then split() at the newlines (if any) into an array of
separate values, which is passed to containsAny(...) to test the
'current' tiddler's tags. To specify the desired tags to match, you
simply list them, *one per line* in the [[Filter]] tiddler (note: make
sure there are no blank lines, as this will produce a match for the
empty string, "")
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
----
WAS THIS ANSWER HELPFUL? IF SO, PLEASE MAKE A DONATION
http://www.TiddlyTools.com/#Donations
note: donations are directly used to pay for food, rent,
gas, net connection, etc., so please give generously and often!
Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
http://www.TiddlyTools.com/#Contact