jDownloadsownloads.com



Author Topic: Preview and download link in the same layout  (Read 2263 times)

0 Members and 1 Guest are viewing this topic.

Offline actv-tec

  • Newbie
  • *
  • Posts: 4
Preview and download link in the same layout
« on: 29.06.2014 13:58:40 »
Hello, In my case I need to be able to do the following in "files" layout:

I am activating direct download though oho file - that way the pdf file is downloaded and not previewed - this is good,
but I also need a link to preview (opening pdf in browser, no download preview). And I need to be able to generate this link near the actual download link.

Also if there is some functionality to open the preview in a lightbox?

Another question: Is there a way to use different layouts with different categories?

Added image to see what I mean

Thanks
« Last Edit: 29.06.2014 14:28:25 by actv-tec »

Offline Arno

  • Administrator
  • ***
  • Posts: 12.239
    • jDownloads.com
Re: Preview and download link in the same layout
« Reply #1 on: 02.07.2014 12:30:59 »
Hi,
i think this is in the moment not possible yet.
We need in the moment all our time to get as soon as possible a more stable release.
Afterwards can we work on other details.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!

Offline actv-tec

  • Newbie
  • *
  • Posts: 4
Re: Preview and download link in the same layout
« Reply #2 on: 02.07.2014 12:37:59 »
Thanks for the answer.
Maybe you can point me to the right direction as to how to tackle the problem? (I don't mind editing the code)
There are some headers added to make it downloadable, and so all links become downloads. Is there a way to craft a link to make it just open the file?

Thanks

Offline rubyxx2016

  • Newbie
  • *
  • Posts: 1
    • printable calendar 2017
Re: Preview and download link in the same layout
« Reply #3 on: 07.12.2016 09:56:47 »
thanks for the answer. when you can find out the answer, please let me know

Offline ColinM

  • Moderator
  • *
  • Posts: 3.477
Re: Preview and download link in the same layout
« Reply #4 on: 07.12.2016 13:10:09 »
Hi
Placing the Download Button is a matter of making a modified Files Layout, which is a matter of positioning the relevant <div> code.  This is relatively straight forward. One can also make the Download title clickable as a standard facility in Config. See
http://www.jdownloads.net/documentations/item/download-actions-direct-via-summary-page-or-via-download-details

The Preview file is in general a separate grahics type file - in the case of audio/video files then jD will use the actual file as the preview if a preview file has not been uploaded.  There is also a feature to convert the first page of a pdf into a graphic.  Generally these previews appear as an image.

Perhaps a better way is to put any 'preview' text and images into the description part and then use a Files layout that supports the 'read more' button.  There are suitable extra layout in the jd Layouts library - see
http://www.jdownloads.com/index.php/downloads/category/10-layouts-library.html
for more info on the additional layouts.

Colin