> <<newTiddler title:"Replace this title with the name of your topic"
> label:"new topic" tag:"topic" text: {{"<<forEachTiddler where
> 'tiddler.tags.contains("Computers") && tiddler.data("notetopic")'
> sortBy 'GroupTitle = tiddler.data("notetopic")
> +"###"+tiddler.data("booktitle")' script 'function
> getGroupTitle(tiddler, context) {if (!context.lastGroup ||
> context.lastGroup != tiddler.data("notetopic")) {context.lastGroup =
> tiddler.data("notetopic");return "!!{{{"+(context.lastGroup?
> context.lastGroup:"no tags")+"}}}\n";} else return "";}' write
> 'getGroupTitle(tiddler, context)+"**[["+tiddler.title+"]]\n"'\>\>"}}>>
Nested double-quotes: the macro param itself is using double-quotes in
the {{"..."}} syntax, so you can't use them inside the
<<forEachMacro>> as well. To avoid this, instead of putting the
default text directly into the macro param, you can use this "text"
param to get the default text from another tidder (e.g.,
[[BlankTopic]])
text:{{store.getTiddlerText("BlankTopic")}}
where [[BlankTopic]] contains the desired default <<forEachTiddler>>
content, but doesn't need to have the surrounding double-quotes, so
you are free to use them within the <<forEachTiddler>> params as
usual...
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios