On Saturday, July 22, 2017 at 9:38:45 AM UTC-7, myst...@gmail.com wrote: > > I saw a similar post addressing this for $variable$ types. > My problem is that i am using <$set> w/ a filter to get the tiddler title > based on a name passed to it, which restricts me to the <<variable>> usage. > The below macro works great if the title passed is a single word such as > 'Alarmed'. the modal will pop up w/ the tiddler. > If i pass a mult-word title such as "Alarmed and Dangerous" the modal will > fail. > > \define modal_link(title:none) > <$set name="tit" value=$title$> >
Put quotes around $title$, like this: <$set name="tit" value="$title$"> the $param$ syntax is a *lexical subtitution* done upon entry to the macro. Thus, if you pass in a parameter value containing spaces (e.g., "two words"), then the substitution, without the surrounding quotes, would be: <$set name="tit" value=two words> resulting in a value of tit="two", with "words" being ignored, rather than resulting in tit="two words" > <$set name="myTid" filter='[!is[system]regexp:<tit>]'> > <$button> > <$action-sendmessage $message="tm-modal" *$param=<<myTid>>*/> > <<myTid>> > </$button> > </$set> > </$set> > \end > enjoy, -e Eric Shulman TiddlyTools.com: "Small Tools for Big Ideas" (tm) InsideTiddlyWiki: The Missing Manuals -- 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/756dedb0-9d08-4c0b-afac-7a6518600161%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.