Linking to a file (newbie)

79 views
Skip to first unread message

Scott Windmiller

unread,
Sep 10, 2015, 2:11:28 PM9/10/15
to tiddl...@googlegroups.com
I just installed version 5.1.9 on Debian and its working great. I am now trying to link to a file and cannot get it.
I had ran "tiddlywiki mynewwiki --init server" while I was in the "home/scott" folder so I know have:
"/home/scott/mynewwiki/tiddlywiki.info"
and
"/home/scott/mynewwiki/tiddlers/" which contains all of my .tid files.

I am assuming my current folder is "/home/scott/mynewwiki", right?

My confusion is where to put the files I want to link to and how to "call" them.

I put a test file: "test.txt" in the /home/scott/mynewwiki/" folder and tried:
<a href="test.txt">Test</a> but it does not load the contents of the text file.

Am I going this right?

I have also tried:
[ext[Link|test.txt]] but was unsure what folder to put it in. I tried /home/scott/mynewwiki/ and /home/scott/mynewwiki/tiddlers/ but nothing comes up.

Not sure what I am doing wrong.

Thanks,
Scott

Evan Balster

unread,
Sep 10, 2015, 8:24:22 PM9/10/15
to TiddlyWiki
Try a HTML link, EG:  <a href="file://test.txt">click here!</a>

This might also work:  [[click here!|file://test.txt"]]

That should work for a text file in the same folder as your wiki.  Generally you'll need URI prefixes in order to link to stuff outside TiddlyWiki.

Jeremy Ruston

unread,
Sep 11, 2015, 12:29:11 PM9/11/15
to TiddlyWiki, Scott Windmiller
Hi Scott

The problem here is that TiddlyWiki does not include a static file server. That means there's no out-of-the-box way of serving your "test.txt" file so that it can be retrieved by the browser. The solution for the moment is to run TiddlyWiki behind a full-featured web server like Apache or nginx, and let it handle serving static files.

Best wishes

Jeremy




On Thu, Sep 10, 2015 at 7:11 PM, Scott Windmiller <swind...@gmail.com> wrote:
I just installed version 5.1.9 on Debian and its working great. I am now trying to link to a file and cannot get it.
I had ran "tiddlywiki mynewwiki --init server" while I was in the "home/scott" folder so I know have:
"/home/scott/mynewwiki/tiddlywiki.info"
and
"/home/scott/mynewwiki/tiddlers/" which contains all of my .tid files.

I am assuming my current folder is "/home/scott/mynewwiki", right?

My confusion is where to put the files I want to link to and how to "call" them.

I put a test file: "test.txt" in the /home/scott/mynewwiki/" folder and tried:
<a href="test.txt">Test</a> but it does not load the contents of the text file.

Am I going this right?

Thanks,
Scott

--
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/423cd439-dc45-4b4f-86a4-3f78987b5ed0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com
Reply all
Reply to author
Forward
0 new messages