Trying to improve the No-brainer/TWnotes menu, I wish to add a simple
"+" next to each menu item, that is supposed to create a sub-item
automatically tagged correctly.
I almost have it working, thanks to inserting Mr.Bairds
newSavedTiddler.into Mr. Borkowskis foreEachTiddler;
<<forEachTiddler
where
'tiddler.tags.containsAll(["Subject1"])'
write
'"[["+tiddler.title+"]] <<newSavedTiddler title:'new' label:'+' tag:
{{'"+tiddler.title+"'}}$))\n"'
>>
What is problematic are the single-apostrophe signs which apparently
are required for both parameters. The >> have been exchanged for $))
so I'm hoping there is something similar for the apostrophe.
I also did some archive searching and found a suggestion to:
"...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... "
- but my attempts don't work out. Here's one such;
<<forEachTiddler where 'tiddler.tags.containsAll(["Subject1"])'
write
'"[["+tiddler.title+"]] "+
text:{{store.getTiddlerText("T1")}}+tiddler.title+
text:{{store.getTiddlerText("T2")}}+"\n"'
>>
where T1 and T2 respectively read;
<<newSavedTiddler title:'new' label:'NY' tag:{{'
'}}$))
Feeling a bit stuck and hoping for a little help.
Thank you
/Mat
[1]
http://groups.google.com/group/TiddlyWiki/browse_thread/thread/4ef4ef78b49b9e7d/06f6e4b1e6691fea?lnk=gst&q=macro+inside+forEachTiddler#06f6e4b1e6691fea
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" 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/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---