direct link to tiddlers from outside?

54 views
Skip to first unread message

Niklas Wagner

unread,
Dec 18, 2008, 9:53:48 AM12/18/08
to TiddlyWiki
Is it possible to link from an outside html file directly to a tiddler
within a tiddlywiki?

Eric Shulman

unread,
Dec 18, 2008, 10:32:33 AM12/18/08
to TiddlyWiki
> Is it possible to link from an outside html file directly to a tiddler
> within a tiddlywiki?

That is called a "permalink", and it looks like this:

http://www.example.com/twdoc.html#TiddlerName

When you load the document, if there is a #TiddlerName in the URL,
then the normal [[DefaultTiddlers]] list is bypassed, and the
specified tiddler title is opened instead.

Note: if your tiddlername contains spaces, they need to be *URL-
encoded* (using %20) and surrounded by doubled-square brackets
([[...]]) like this:

http://www.example.com/twdoc.html#[[Tiddler%20Name%20with%20spaces]]

Also note that, to use the permalink with other, non-browser apps that
can handle embedded URLs (e.g., many email programs), you need to URL-
encode the square brackets as well, like this:

http://www.example.com/twdoc.html#%5B%5BTiddler%20Name%20with%20spaces%5D%5D

where:
"[" = %5B
and
"]" = %5D

Last note: except for the encoding of the square brackets, you can
instantly create a permalink to a given tiddler by clicking the
'permalink' command from that tiddler's toolbar. When clicked, the
address shown in your browser's URL field will automatically be
updated to append the appropriate "#TiddlerName" suffix.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
Reply all
Reply to author
Forward
0 new messages