[dokuwiki] Re: image link to pdf file

  • From: mail@xxxxxxxxxxxx
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Tue, 16 Jun 2020 14:12:20 +0000

You added a "." in front of the pdf-file.

because I need to use a relative path

As far as I understand the path is absolute with leading ":".
But all the details can be found here:
https://www.dokuwiki.org/start?id=namespaces

But I guess it doesn't work for you, right?


If you use my example, it works (for me):

by "it works", you mean, it links to a page /path/to/file.pdf.txt ?

Or you mean, when you click, actually pdf file opens/dowloads?

The second one! It opens the PDF directly.


[[ :path:to:file.pdf |{{path:to:image.png?200|}}]]

Don't use the point.

when I remove the dot:

[[:pdf:file.pdf|{{.:img:pic.jpg?100|}}]]

the image links to non-existen page

/pdf/file.pdf.txt

Maybe I don't get your problem right. Could you explain it again and
with more details?

the problem is:

on my page, I have image linking to pdf file. When clicked, pdf should
open/doewnload.

Your problem is a little bit more than that. You want to use relative paths ;)

I guess, I can't help here anymore. Sorry and good luck.

Best regards
Richard



--
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: