Yet another approach:

<$button >New Task
<$vars left=" [[" right="]]" space=" ">
<$action-sendmessage $message="tm-new-tiddler" $param="TaskTemplate" 
   tags={{{ 
[[TaskTemplate]get[tags]addsuffix<left>addsuffix<currentTiddler>addsuffix<right>]
 
}}}  />
</$vars>
</$button>

Mostly this demonstrates that when you use the <$action-sendmessage> 
widget, it will bundle up other fields and send them along.
So you could create different versions of the same button, but that add 
various fields (date, journal, author, etc.) without changing
the original template.


On Tuesday, December 15, 2020 at 1:31:16 AM UTC-8 vinvi...@gmail.com wrote:

> Hello,
>
> I am using WidgetMessage: tm-new-tiddler.
> https://tiddlywiki.com/static/WidgetMessage%253A%2520tm-new-tiddler.html
>
> I have a Template tiddler called "Template1" with fields, tags etc.
> And a tiddler called "Template1Button" with this code:
>
> <$button message="tm-new-tiddler" param="Template1Button">New 
> tiddler</$button>
>
> I transclude tiddler {{||Template1Button}} in different tiddlers. It all 
> works fine so far.
>
> How can I make sure that the newly created tiddler is also automatically 
> tagged to the tiddler where the button is transcluded?
>
> So when I click on the transcluded button in Tiddler1 the new tiddler 
> should be automatically tagged to Tiddler1. And with Tiddler2 to Tiddler 2 
> etc.
>
> Thank you,
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3ffbefd2-627d-4c90-9194-cfe92dea776cn%40googlegroups.com.

Reply via email to