How do I create an external link to the static files?

78 views
Skip to first unread message

Devin Weaver

unread,
Oct 19, 2016, 4:42:17 PM10/19/16
to TiddlyWiki


I want to offer a link in the info section of tiddlers. Tiddly Wiki does this now but the output is plain text. I want the link to be an actual link because it is easier to copy paste links then plain text on mobile phones.

Not sure if this is a feature request to extend the <$link> widget or not. Thoughts before I open a GitHub issue?


Tobias Beer

unread,
Oct 20, 2016, 2:16:30 AM10/20/16
to tiddl...@googlegroups.com
I Devin,

You can use tobibeer/hash to properly url-encode titles twice:

\define static() http://tiddlywiki.com/static/$(encoded)$.html

<$set name="encoded" filter="[[Working with TiddlyWiki]hash[]hash[]]">

<<static>>
</$set>

...or to decode the same back to titles via hash:decode[].

Best wishes,

Tobias.

Jeremy Ruston

unread,
Oct 20, 2016, 4:03:09 AM10/20/16
to tiddl...@googlegroups.com
Hi Devin

I want to offer a link in the info section of tiddlers. Tiddly Wiki does this now but the output is plain text. I want the link to be an actual link because it is easier to copy paste links then plain text on mobile phones.

Funnily enough, the missing piece for this were two things that were shipped in the last few days:

* the encodeuricomponent filter operator
* the select attribute of the set widget

I’ve just pushed an update to $:/editions/tw5.com/TiddlerInfo/Sources that renders both links as proper links. Obviously, the update will only work in 5.1.14

Best wishes

Jeremy


Not sure if this is a feature request to extend the <$link> widget or not. Thoughts before I open a GitHub issue?



--
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+...@googlegroups.com.
To post to this group, send email to tiddl...@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/21474d5b-75e4-4843-84e3-d2230fd149aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages