Hi Sven, > Following you guidelines: What I still don't know is how to then append > something to a variable already set. >
Very simple: use a macro, that is what they do, mostly: string replacement. \define bongo() bong \define run(what) $what$-$(bong)$-<<bongo>> <$vars bong="bing"> <<run bada>> </$vars> where the marker bits (marked in two different colors above) are coming > from the result of a list (there could be dozens) Ah, now I see. Mhhh, redefining a variable doesn't quite work, you kinda need to know in the first place what you want. However, with tobibeer/join <http://tobibeer.github.io/tw5-plugins/#join> & tobibeer/filter <http://tobibeer.github.io/tw5-plugins/#filter> as well as the filter parameter of the SetWidget <http://tiddlywiki.com/#SetWidget>, you can achieve it: \define maplurl() https: //maps.googleapis.com/maps/api/staticmap?center=Brooklyn+Bridge,New+York,NY&zoom=13&size=600x300&maptype=roadmap$(markers)$ <$vars marker="&markers=color: [<inputTitle>get[color]] %7Clabel: [<inputTitle>get[title]removeprefix[$:/markers/]] %7C [<inputTitle>get[lat]] , [<inputTitle>get[long]] +[join[]]"> <$set name="markers" filter="[prefix[$:/markers/]filter<marker>join[]]"> <img src=<<mapurl>>/> </$set> </$vars> The above works with these two system tiddlers: title: $:/markers/G color: green lat: 40.711614 long: -74.012318 title: $:/markers/S color: blue lat: 40.702147 long: -74.015794 So, the filter filter in the set widget runs the outer filter defined in the variable "marker" as a subfilter and tobibeer/join joins it all up w/o any blanks or separators. You can try the above on tobibeer/plugins <http://tobibeer.github.io/tw5-plugins>. Best wishes, Tobias. -- 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/35f96184-5bb6-4002-a1a1-ef97e8db752d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
$--markers-G.tid
Description: Binary data
$--markers-S.tid
Description: Binary data
Demo.tid
Description: Binary data