Sweet! Tones you've made my day! Thanks allot! Geert
On Thursday, 8 April 2021 at 10:09:23 UTC+2 TW Tones wrote: > Geert, > > The are a number of ways to achieve this here is one, inside a macro we > can use substitution variables. > \define newhere() > <$button> <$action-sendmessage $message="tm-new-tiddler" title=<<now > "YYYY-0MM-0DD hh:0mm">> text="" tags="[[$(currentTiddler)$]]" /> New > Tiddler </$button> > \end > <<newhere>> > > But this button already exists in the view toolbar. See new here button. > > If we want to we can transclude it where we want and use "||" to apply it > to the current tiddler > > {{||$:/core/ui/Buttons/new-here}} > > Tones > > On Thursday, 8 April 2021 at 17:26:09 UTC+10 Geert Geurts wrote: > >> Hi All >> >> I'm trying to create a button which pressing it creates a tiddler tagged >> with the title of the tiddler where the button resides. So I have a tiddler >> named "New Tiddler" with a button. Once I click this button I want to get a >> new tiddler tagged "New Tiddler". >> >> I cam this far: >> <$button> <$action-sendmessage $message="tm-new-tiddler" title=<<now >> "YYYY-0MM-0DD hh:0mm">> text="" tags={{!!title}} /> New Tiddler </$button> >> >> But that gives two tags "New" and "Tiddler", and using the following: >> <$button> <$action-sendmessage $message="tm-new-tiddler" title=<<now >> "YYYY-0MM-0DD hh:0mm">> text="" tags=[[{{!!title}}]] /> New Tiddler >> </$button> >> >> Tags it with "{{!!title}}"... >> >> >> Regards, >> >> Geert >> > -- 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/a259b784-768e-495a-9ff4-861cd2e0ce44n%40googlegroups.com.