I ran into this problem a while ago and someone from here in the group
suggested this:
\define getTag()
[[$(currentTiddler)$]]
\end
and now call this macro in the button:
<$action-sendmessage $message="tm-new-tiddler" text='<$transclude
tiddler="$:/category">' tags=<<getTag>> />
On Thursday, June 27, 2019 at 2:54:29 PM UTC-7, Ankit Mittal wrote:
>
> Hi,
>
> I am trying to create a button that mimics the behaviour of "Create a new
> tiddler tagged with this one".
>
> I used this
>
> <$action-sendmessage $message="tm-new-tiddler" text='<$transclude
> tiddler="$:/category">' tags={{!!title}} />
>
> which works fine so long as title does not have white space but if it has
> white space it takes each word as a separate tag instead of making whole
> title the tag.
>
> Please can someone help me achieve this?
>
--
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/d661d338-5987-4ffd-ba45-d78fd38f8573%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.