TW5: Link relative to local files always tries to open a tiddler

2,355 views
Skip to first unread message

Jeroen

unread,
Feb 3, 2014, 2:06:16 PM2/3/14
to tiddl...@googlegroups.com
I have used the classic tiddlywiki for quite a while now and really like the ease of use. I have read about the TW5 and decided to give it a try.

I am currently trying out features and can not find the correct way to link to a local file in a relative way.

Suppose I have my tiddlywiki in
/var/www/index.html
and I have a file I want to show in:
/var/www/myfiles/something.pdf

What I used to do in the classic TW was:
[[nicemane|myfiles/something.pdf]]

This worked flawlessly, it just opened the link
http://mysite/myfiles/something.pdf
when clicking on the link in the tiddlywiki

However in TW5 it does not resolve to this address but to:
http://mysite/#myfiles/something.pdf
so it adds a pound (#) sign. Therefore my browser (Firefox 26.0 with Tiddlyfox extension) tries to open it as a new tiddler which it can not find so it shows a blank one.

I can resolve this by using:
<a href="myfiles/something.pdf">nicename</a>
But this is not as lean as the original way and I would have to manually change tiddlers I want to import.

Any suggestions?

Eric Shulman

unread,
Feb 3, 2014, 4:00:35 PM2/3/14
to tiddl...@googlegroups.com
On Monday, February 3, 2014 11:06:16 AM UTC-8, Jeroen wrote:
I can resolve this by using:
<a href="myfiles/something.pdf">nicename</a>
But this is not as lean as the original way and I would have to manually change tiddlers I want to import.

The TW5 Roadmap (see http://tiddlywiki.com/static/RoadMap.html) includes this item:
   * [img[url]] for remote image embedding, and [ext[url]] for explicit external links 

This syntax has not yet been implemented, so until then, the HTML syntax you are using is the correct fallback.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

EVERY DONATION IS IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:

PauldM

unread,
Feb 5, 2014, 10:47:26 AM2/5/14
to tiddl...@googlegroups.com
Jeroen,

I'm using Windows7/TW5 stand alone and I can link to a local file in a relative way by using

[[file.pdf|file:.\pdf\file.pdf]]

My TW5 is in the folder c:\TW5, and my pdf's in folder c:\TW5\pdf

This also works for my images stored in folder c:\TW5\Img

<img border="0" src=".\Img\picture.jpg" alt="Picture">

Give it a try,

Kind regards, Paul

Danielo Rodríguez

unread,
Feb 5, 2014, 11:21:10 AM2/5/14
to tiddl...@googlegroups.com
This syntax has not yet been implemented, so until then, the HTML syntax you are using is the correct fallback.

Stephan Hradek

unread,
Feb 5, 2014, 1:15:27 PM2/5/14
to tiddl...@googlegroups.com
No. It's not the syntax, it's the \. Use the standard / and not the WinDOS specialty.
Reply all
Reply to author
Forward
0 new messages