Hi,
I would like to have a button that creates a new tiddler whose tags
are the titles of all tiddlers named "foo". I have tried to make a
forEachTiddler call like this inside newTiddler:
<<forEachTiddler where [[tiddler.tags.contains("T")]] write [['
tag:"'+tiddler.title+'"']]>>
in the following way (note the curly brackets and the escaping of the
double quotes):
<<newTiddler label:"Test" {{"<<forEachTiddler where
[[tiddler.tags.contains(\"T\")]] write [[' tag:\"'+tiddler.title+'\"']]
>\>"}} tag:"T" text:{{store.getTiddlerText("bar","")}}>>
but all I get is a new tiddler with the text of "bar" (correct) and
the tags
[[<<forEachTiddler where [[tiddler.tags.contains("T")]] write [['
tag:"'+tiddler.title+'"']] >>]] T
(yes, the first one is with brackets.) Maybe it's not possible to do
this sort of nested macro calling, I have done nested forEachTiddler's
before by putting the inner call in the "script" part of the outer
call, but here I don't see how to. There may also be some neat plugin
out there that does the trick, but I would prefer to keep the number
of plugins in my TW to a minimum, and I am curious about how to do
this :)
Thanks a lot,
David
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/TiddlyWikiDev?hl=en
-~----------~----~----~----~------~----~------~--~---