From ea9f75881b1a2eeba0075c8928f690cfa8eff870 Mon Sep 17 00:00:00 2001 From: "https://www.google.com/accounts/o8/id?id=AItOawl99R7bhJ2vy8I_q_st9wwBlwJ38Qyro34" Date: Sun, 11 Sep 2011 05:23:03 -0400 Subject: [PATCH] --- doc/forum/create_download_link.mdwn | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 doc/forum/create_download_link.mdwn diff --git a/doc/forum/create_download_link.mdwn b/doc/forum/create_download_link.mdwn new file mode 100644 index 000000000..44899b118 --- /dev/null +++ b/doc/forum/create_download_link.mdwn @@ -0,0 +1,4 @@ +Thank you very much for ikiwiki. I successfully started using it. +Now I have a simple question that I am not able to answer myself at the moment: + +In the directory structure of ikiwiki I placed a file (in this case a video). In an ikiwiki page I would like to create a link to this file, so that the user can download it. Of course I can do this using a link to the absolute url, including hostname and the full path. But when I move the wiki to another host, this will not be valid anymore. Therefore my question: Is there a way to automatically create a link to a file by relatively specifying the destination? Say, I have a directory foo with a page foo/bar.mdwn and a folder foo/downloads with a file foo/downloads/video.mp4, I would like to refer to this file using "downloads/video.mp4" or something similar. Is there such a possibility? -- 2.26.2