Hi everyone
Quick experiment for which I need a fix: I want a new button to place in $:/language/MissingTiddler/Hint, that creates three tiddlers at once:
Let’s say the missing tiddler title is Thomas Jefferson. Clicking the button would create three tiddlers:
- Thomas Jefferson (
<$action-sendmessage $message="tm-new-tiddler" title=<<currentTiddler>> />)
- Thomas Jefferson, sources read
- Thomas Jefferson, sources unread
What would I put so that it grabs <> but adds , sources read and , sources unread to the title?
You can give this a try:
<$button tooltip=“create tiddlers”>
<$action-sendmessage $message="tm-new-tiddler" title=<<currentTiddler>> />
<$action-sendmessage $message="tm-new-tiddler" title={{{ [<currentTiddler>addsuffix[, sources read]] }}} />
<$action-sendmessage $message="tm-new-tiddler" title={{{ [<currentTiddler>addsuffix[, sources unread]] }}} />
create tiddlers for <<currentTiddler>>
</$button>
Thanks Brian!
Next question: is there something I can add so that all three of these are saved rather than left open in edit mode?
Sure, use the ActionCreateTiddler widget instead of the ActionSendMessage widget
https://tiddlywiki.com/#ActionCreateTiddlerWidget
<$action-createtiddler $basetitle=<<currentTiddler>> />
<$action-createtiddler $basetitle={{{ [<currentTiddler>addsuffix[, read source]] }}} />
<$action-createtiddler $basetitle={{{ [<currentTiddler>addsuffix[, unread source]] }}} />
…oops Mark beat me to the punch in another thread while I was away.
Yeah, you dropped the ball and others had to cover for you 