Thanks a lot guys. Very helpful links and the set widget suggestion triggers few new ideas too.
On Sat, 29 Jun 2019, 15:49 Xavier Cazin, <[email protected]> wrote: > Hi Ankit, > > In order to get a tiddler title instead of a flat string, you usually want > to retrieve it from a filter. You can use Mark's construct to build the > tiddler title manually, but the <$set> widget does have a > handy filter attribute that you can use directly, like so: > > <$set name=foo filter='[{!!title}]'> > <$button><$action-sendmessage $message="tm-new-tiddler" text='<$transclude > tiddler="$:/category">' tags=<<foo>> />Go!</$button> > </$set> > > Regards, > Xavier. > > > Le ven. 28 juin 2019 à 11:09, Ankit Mittal <[email protected]> a > écrit : > >> Hi Mark. Many Thanks. It worked indeed. >> >> However, I must admit I do not follow the code .. what does <$vars> do >> and where should I read about it? >> >> On Thursday, June 27, 2019 at 11:11:32 PM UTC+1, Mark S. wrote: >>> >>> Try >>> >>> <$vars pre="[[" suf="]]"> >>> <$button>New tiddler >>> <$action-sendmessage $message="tm-new-tiddler" text='<$transclude >>> tiddler="$:/category">' tags={{{ >>> [<currentTiddler>addprefix<pre>addsuffix<suf>] }}} /> >>> </$button> >>> </$vars> >>> >>> >>> 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/a96a87f0-c0d8-4f4f-8ce7-b21605bf9d9a%40googlegroups.com >> <https://groups.google.com/d/msgid/tiddlywiki/a96a87f0-c0d8-4f4f-8ce7-b21605bf9d9a%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- > 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/CADeSwYPDPDd9moWiO4_Jn_Xmmg3yzWbv15s1qc0oD_d3hPnQ5Q%40mail.gmail.com > <https://groups.google.com/d/msgid/tiddlywiki/CADeSwYPDPDd9moWiO4_Jn_Xmmg3yzWbv15s1qc0oD_d3hPnQ5Q%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAAgqyEWZgdiVUszUa0ruzeU8CE7k75SA3eyd7ht%3DcZba-d-cXg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

