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

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ded5679b-e63a-4c2c-b5a2-be3e432e552b%40www.fastmail.com.

Reply via email to