I've only been able to do this sort of thing by taking advantage of the
fact that buttons can fire two actions in sequential order: <$button
action<<second_action>>> <<first_action>></$button>.
So you can use <$action-createtidder
$savetitle="$:/temp/new_button_tiddler"> in <<first_action>> to save the
*actual* title and not the base title and then use it in in the
second_action like:
<$fieldmangler tiddler={{$:/temp/new_button_tiddler}}>
<$action-sendmessage $message="tm-add-tag" $param=<<currentTiddler>>/>
</$fieldmangler>
See https://sextant.space/#ButtonHere
and stick a {{||ButtonHere}} in a new tiddler to see it in action.
You might be able to adapt it to your needs.
/Mike
On Tuesday, April 27, 2021 at 2:52:28 PM UTC-3 Mat wrote:
> I wish to create a new tiddler using action-createtiddler (because it uses
> the "basetitle" to prevent overwrites). I define the title and tags values
> via a temp tiddler in some EditTextWidgets, as you see below.
>
> But I want the new tiddler tags to be both this arbitrary temp!!tgs value
> AND and the title of the current tiddler (i.e {{!!title}}). The temp!!tgs
> value is not surrounded by brackets and it may contain spaces. The current
> tiddlers title is a normal tiddler title.
>
> I'd appreciate any help on how I can set the tags here?
>
> \define newtid()
> <$button> click
> <$action-createtiddler $basetitle={{temp!!ttl}} tags=????????/>
> </$button>
> \end
>
> <$edit-text tiddler=temp field=ttl/>
> <$edit-text tiddler=temp field=tgs/>
> <<newtid>>
>
> <:-)
>
--
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/10c25b90-9598-4dfe-8899-036f8056b1c6n%40googlegroups.com.