Hi Eric, Yes it does, I tried it myself right now and works flawlessly.
Well this greatly simplifies the view template, thanks a lot.
I don't know why it didn't work before, I think the problem was the
inclusion of quotation marks (has in <a href="{{!!url}}" ...), which are
needed in HTML but oddly enough break the wikitext.
Hum... Wonder if I can do the same with my maps URLs and simplify another
viewtemplate?
On Monday, 23 March 2015 23:48:11 UTC, Eric Shulman wrote:
>
> 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.