Aaaah, this is maddening. It's so close. Suppose I create a tiddler with 
the fields:
x = mike
email = {{!!x}}

then, amazingly, 
{{!!email}} displays "mike"
and, weirdly,
<a href={{!!emai}}>link</a> creates a link to "{{!!x}}". hmm.

even weirder, changing the email field to be
email = mailto:{{!!x}}

then 
{{!!email}} displays "mailto:{{!!x}}";
and, weirdly,
<a href={{!!email}}>link</a> creates a link to "mailto:{{!!x}}";.

There is some crazy stuff going on between the TW parser and the rendering 
engine that I'm not following.


On Monday, February 3, 2014 8:40:25 AM UTC-5, Mike wrote:
>
> I'd like to have a field, e.g. "email", and then use that field in a 
> string:
>
> <a href="mailto:<$view field="email">">click to email</a>
>
> But the resulting link just goes to "mailto:<$view field="email">"". Any 
> ideas? I've also tried with the {{!!email}} notation, but it does the same 
> thing as soon as it's inside quotes. I don't really want to use a macro, 
> which seems much more heavy-weight than necessary. I also tried using
>
> <$view field="email" template="mailto:$value$";>
>
> but (and maybe this is because I'm using 5.07beta) it seemed to completely 
> ignore the template parameter.
>
> Even if that last method could work it's syntactically heavy, so I'm 
> hoping there's some quirk or escape sequence to let me use {{}} right 
> inside the quoted string.
>
> Thanks!
>

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to