> I added the tag 'LogFile' to the 'New Journal' button code The handler code for <<newJournalHere>> simply appends an extra "tag" param to the standard <<newJournal>> so that the current tiddler title will be used as a tag on the resulting journal tiddler.
The following line of code is at the heart of it: wikify("<<newJournal "+paramString+" tag:[["+tiddler.title+"]] >>",...); Note the use of "paramString" when assembling the <<newJournal>> command that is actually rendered... This just inserts whatever params were included in the invoked macro, so that something like: <<newJournalHere foo bar baz>> produces output as if <<newJournal foo bar baz tag:[[ThisTiddlerTitle]]>> were actually rendered. ... and, because you can have more than one "tag:[[foobar]]" param in the macro, it is trivial to add whatever extra tags you want, simply by passing the extra tag param in the invoking macro, like this: <<newJournalHere foo bar baz tag:[[LogFile]]>> which will be rendered as: <<newJournal foo bar baz tag:[[LogFile]] tag:[[ThisTiddlerTitle]]>> and thus adds *both* tags to the resulting journal tiddler. QED. enjoy, -e Eric Shulman TiddlyTools / ELS Design Studios --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "GTD TiddlyWiki" group. To post to this group, send email to GTD-TiddlyWiki@googlegroups.com To unsubscribe from this group, send email to gtd-tiddlywiki+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/GTD-TiddlyWiki?hl=en -~----------~----~----~----~------~----~------~--~---