Loading...
 
 Error
  • Contact the site administrator. The index needs rebuilding.
Features / Usability

Features / Usability


Having pdf's open via a link in your file gallery

posts: 10 United States

Hello,

I have a pdf file uploaded to my gallery, I know the ID that I need to use, I am looking for a way to get my pdf to open in a new window when I click the link and not try to save.

currently my code looks something like

Copy to clipboard
[http://mysite/tiki-download_file.php?fileId=92|PDF|target]


Though it doesn't seem to be working as IE wants to try to save the pdf, vs opening it.

Thanks

posts: 214

Try:

Copy to clipboard
[http://mysite/tiki-download_file.php?fileId=92&display|PDF|target]

posts: 10 United States
That worked perfectly! Thanks!

posts: 42 Spain

Hi,
Thats works fine for me also, but the pdf file opens in the same window as the wiki.
Is there any way to make the pdf file open in a new window ?

Thanks and best regards

Santi Peralta

posts: 2428 Czech Republic
Copy to clipboard
[http://mysite/tiki-download_file.php?fileId=92&display|PDF|_blank]


or SEFURL:

Copy to clipboard
[display92|PDF|_blank]

posts: 2428 Czech Republic
OR maybe you just need to enable "Open external links in new window" feature.