That worked perfectly, thanks Mark! On Tuesday, October 24, 2017 at 10:41:25 AM UTC-4, Mark S. wrote: > > Ok this worked for me: > > \define mymacro() [ext[$(ggml)$$(add)$]] > > <$vars ggml={{!!googlesmapslink}} add={{!!address}}> > > <<mymacro>> > </$vars> > > In general, you need to set your fields into variables using a widget > (e.g. the vars widget) wrapped outside of the macro you want to invoke. > Inside the macro you can use the special macro environmental variables > $(var)$ to "glue" > your text together. That's just my interpretation -- I've never been able > to complete synthesize how everything is supposed to work. But I find this > pattern is pretty reliable. > > Good luck, > Mark > > On Tuesday, October 24, 2017 at 7:20:10 AM UTC-7, Appeal System wrote: >> >> Hello, >> >> I am attempting to create a contacts database that automatically creates >> a "google maps search" to an address. (This is so that when on my mobile >> device, I can look up a name and simply click an address to get directions >> to that persons house. >> >> To do this I use the following example: >> >> http://maps.google.com/?q=the white house >> >> I have 2 fields within my Tiddlers contact form: >> >> Field 1: Google Maps Link: >> >> http://maps.google.com/?q= >> >> Field 2: address (in my contacts db): >> >> the white house >> >> I think what I am trying to do has already been solved here >> <https://groups.google.com/forum/#!topic/tiddlywiki/s39BsTKvazk>, but I >> don't understand it fully. >> >> In my simple TW5 knowledge I am trying to accomplish this: >> >> [ext[{{!!googlemapslink}}+{{!!address}}]] >> >> but I know this doesn't work due to how the transclusion works. I have >> also tried to \define my field as a variable and insert it like this: >> >> Where field: {{!!addgmap}} = {{!!googlemapslink}}{{!!address}} >> \define mymacro() >> <$set name="result" value={{!!addgmap}}> >> <<result>> >> </$set> >> \end >> >> <a href=<<mymacro>>>Test </a> >> >> <<mymacro>> >> >> >> And it successfully creates a link, but the link points something like >> this: >> >> MYSERVERIP/<$set%20name="result"%20value=%7B%7B!!addgmap%7D%7D><<result>></$set> >> >> I am quite new to this language, and generally just manipulate others >> code to work for my purposes, but this is the first time I've attempted to >> build something myself and I am failing lol. >> >> Thanks in advance for your help, >> >> Anthony >> >> >
-- 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/b93be3da-ae8d-4046-a816-727bdb5c3777%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.