Ed Heil
unread,Mar 19, 2020, 2:49:04 PM3/19/20Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to tiddl...@googlegroups.com
Something I find myself doing often, when I have a tiddler that lists other tiddlers with a tag, is create a button which makes a new tiddler with that tag pre-populated. For example, on a page that lists tickets, a button that makes new tickets.
The way I usually do that is with an action message widget, so that I can do something like this:
> <$button>New Ticket
> <$action-sendmessage $message="tm-new-tiddler" title="New Ticket" tags="ticket" />
> </$button>
But it'd be nice if I could tuck all that into the button tag instead of needing a separate action-sendmessage tag. But all I can do inside a button is pass one parameter to the tm-new-tiddler message, and that must be a name of a template.
That's cool, I can make a NewTicketTemplate with that tag already added! But wait, if I do that, that template is going to show up every time I list tickets unless I explicity exclude it. That's a way bigger drag than having to do the action-sendmessage.
I'm just wondering, have I correctly assessed my options, or is there an easier still way to do this?
Obviously I can make the whole problem (which isn't much of a problem) go away with a macro, I'm just wondering if I'm missing some clever tiddlywiki-fu that would make the template idea work better.
Thanks,
Ed