use field inside link

37 views
Skip to first unread message

Rustem

unread,
Aug 11, 2017, 5:54:58 AM8/11/17
to TiddlyWiki
How to display a link using a URL stored in a field? I'm thinking something like this, except it doesn't work: `[[go here|{{!!field}}]]`

RichardWilliamSmith

unread,
Aug 11, 2017, 6:11:39 AM8/11/17
to TiddlyWiki
You can use the full HTML syntax, like this

<a href={{!!field}} target="blank">Link Text</a>

If you find it more convenient, you can put this is a macro

\define field_link(text)
<a href={{!!field}} target="blank">$text$</a>
\end
 
<<field_link "Go here">>

Both examples assume you have a field called 'field' that contains the link address. The target="blank" is optional.

Regards,
Richard
Reply all
Reply to author
Forward
0 new messages