Hi Eric How do we insert a part of the url in combination with a field value?
This obviously doesn't work: <a href="http://my.com/{{!!url-1}}" target="blank"><$image source="http://my.com/{{!!url-2}}.jpg"/></a> Cheers Måns Mårtensson Den tirsdag den 24. marts 2015 kl. 00.48.11 UTC+1 skrev Eric Shulman: > > On Monday, March 16, 2015 at 5:29:34 AM UTC-7, Duarte Farrajota Ramos > wrote: >> >> Ok, finally, took me a while but finally made it work! This works pretty >> well: >> >> \define getAddress() >> ./$(CurrentImage)$ >> \end >> >> <$set name=CurrentImage value={{!!url}}> >> >> <$list filter="[all[current]tag[Image]]"> >> <a href=<<getAddress>> target="blank"><$image source={{!!url}}/></a> >> </$list> >> >> This gets pretty complicated for seemingly simple things. So let me get >> this straight I had to set a variable "CurrentImage" to be used in a >> function (?), macro (?) "getAdress" that builds the desired URL, which then >> can be called inside the <a> HTML tag? >> >> Once again thanks for your expertise, I am finally getting somewhere! :) >> > > This one line works for me: > <a href={{!!url}} target="blank"><$image source={{!!url}}/></a> > No need for <$set> or a <<getAddress>> macro. > > -e > > -- 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 http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.

