tm-new-tiddler and tags parameter

46 views
Skip to first unread message

Mohammad

unread,
Jul 23, 2018, 9:56:16 AM7/23/18
to TiddlyWiki
I want to add two tags at the same time for a new tiddler created by tm-new-tiddler as follow


<$button >
<$action-sendmessage $message="tm-new-tiddler"
    title="Title"
    text="some text..."
    tags="slide {{!!title}}"
/>
New Tiddler
</$button>



but it does not work!

I used $text widget but no success!

Mohammad

Mark S.

unread,
Jul 23, 2018, 10:16:25 AM7/23/18
to TiddlyWiki
Whenever you need to concatenate strings (as you do with the tags) you almost always need to use a macro.

\define mybutton(param)
<$button>
New Tiddler

<$action-sendmessage $message="tm-new-tiddler"
    title
="Title"
    text
="some text..."

    tags
="slide [[$param$]]"
/>
</$button>
\end

<$macrocall $name="mybutton" param={{!!title}}/
>

-- Mark

Mohammad

unread,
Jul 23, 2018, 10:24:15 AM7/23/18
to TiddlyWiki
You are great! It is like one hour I am struggling with this!!

Worked for me like a charm.

Thank you 
Reply all
Reply to author
Forward
0 new messages