[tw5] Re: tm-new-tiddler and tags parameter

2018-07-23 Thread Mohammad
You are great! It is like one hour I am struggling with this!!

Worked for me like a charm.

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 post to this group, send email to tiddlywiki@googlegroups.com.
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/b1d054b9-6c74-46a0-9cba-e5f114003db3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: tm-new-tiddler and tags parameter

2018-07-23 Thread 'Mark S.' via 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$]]"
/>

\end

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

-- Mark

On Monday, July 23, 2018 at 6:56:16 AM UTC-7, Mohammad wrote:
>
> 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
> 
>
>
>
> but it does not work!
>
> I used $text widget but no success!
>
> *Mohammad*
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
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/74279e06-8289-44d4-9f48-c77adc0eed53%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.