[TW5] Linking to local files?

1,792 views
Skip to first unread message

chis...@gmail.com

unread,
Dec 3, 2013, 4:43:46 PM12/3/13
to tiddl...@googlegroups.com
In TW5, is it possible to link to local non-image or non-video files that will open in their default application?

I've tried [[file:///Users/Jeff/Dropbox/file.pdf]] on FF25 and Mac OSX 10.6.

Thanks,

Jeff

Stephan Hradek

unread,
Dec 3, 2013, 4:53:16 PM12/3/13
to tiddl...@googlegroups.com
You can use html syntax.
<a href="file:///Users/Jeff/Dropbox/file.pdf">My File</a>

chis...@gmail.com

unread,
Dec 3, 2013, 5:14:11 PM12/3/13
to tiddl...@googlegroups.com
Actually, I forgot to mention that I tried that also and that isn't working for me either.  Has anyone else experienced this problem? 

Could it be a setting in Firefox that is preventing a file from opening?  I don't get any warnings from Firefox, though.

Stephan Hradek

unread,
Dec 3, 2013, 5:33:01 PM12/3/13
to tiddl...@googlegroups.com
Just tested. Works perfectly.

Provided of course, your tiddlywiki is also stored in the filesystem.

chis...@gmail.com

unread,
Dec 3, 2013, 6:05:34 PM12/3/13
to tiddl...@googlegroups.com
I'm serving the wiki over http so maybe that's the issue?

Just downloaded the wiki and also built it manually via command line.  The output html files gave me this Internal Javascript Error when I tried to load them:

NS_ERROR_DOM_BAD_URI: Access to restricted URI denied

tewi...@gmail.com

unread,
Feb 2, 2014, 10:12:10 AM2/2/14
to tiddl...@googlegroups.com
Does not seem to work for relative local links.  <a href="file://./index.html">My File</a> just stares at me when I click it.

Tom

cangaroo joe

unread,
Feb 2, 2014, 12:50:01 PM2/2/14
to tiddl...@googlegroups.com
Hi I use this way and it works:
[[text|file://localhost\c:\Users\User_name\Downloads\text.pdf]]

Danielo Rodríguez

unread,
Feb 3, 2014, 12:43:22 PM2/3/14
to tiddl...@googlegroups.com

El domingo, 2 de febrero de 2014 18:50:01 UTC+1, cangaroo joe escribió:
Hi I use this way and it works:
[[text|file://localhost\c:\Users\User_name\Downloads\text.pdf]]

That is not very portable. What if I want to have it on a usb drive? or what if I want to use it over multiple OS?

Eric Shulman

unread,
Feb 3, 2014, 3:46:27 PM2/3/14
to tiddl...@googlegroups.com
The TW5 Roadmap (see http://tiddlywiki.com/static/RoadMap.html) includes the following item:
   * [img[url]] for remote image embedding, and [ext[url]] for explicit external links

While it's not clear exactly what kinds of 'explicit external link' URLs will be allowed, it's possible that some special handling for relative path references can be implemented

Until "[ext[...]]" is implmented in TW5, you can use HTML syntax to create links:
   <a href="...">click me</a>

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:
Reply all
Reply to author
Forward
0 new messages