jDownloads Support Forum

jDownloads for Joomla 3.x => jDownloads 3.9 (Support ended) => Topic started by: ibrahim on 21.01.2022 17:41:34

Title: Navigation photos on Layout (Downloads) as Next and Previous?
Post by: ibrahim on 21.01.2022 17:41:34
Hello, How to have navigation photos on Layout (Downloads) as Next and Previous. Same as (Download Details) layout there is navigation for photos but not on Layouts: Downloads.
See attached screenshot GIF

Example of using screenshots on Download Details Layout:
<div class="jd_download_detail_pics" style="width: 200px;">{screenshot_begin} <a href="{screenshot}" rel="lightbox"><img class="jd_download_detail_img" src="{thumbnail}" alt="" /></a>{screenshot_end}</div>
<div class="jd_download_detail_pics" style="width: 200px;">{screenshot_begin2} <a href="{screenshot2}" rel="lightbox"><img class="jd_download_detail_img" src="{thumbnail2}" alt="" align="right" /></a>{screenshot_end2}</div>
<div class="jd_download_detail_pics" style="width: 200px;">{screenshot_begin3} <a href="{screenshot3}" rel="lightbox"><img class="jd_download_detail_img" src="{thumbnail3}" alt="" align="right" /></a>{screenshot_end3}</div>
<div class="jd_download_detail_pics" style="width: 200px;">{screenshot_begin4} <a href="{screenshot4}" rel="lightbox"><img class="jd_download_detail_img" src="{thumbnail4}" alt="" align="right" /></a>{screenshot_end4}</div>
<div class="jd_download_detail_pics" style="width: 200px;">{screenshot_begin5} <a href="{screenshot5}" rel="lightbox"><img class="jd_download_detail_img" src="{thumbnail5}" alt="" align="right" /></a>{screenshot_end5}</div>


Example of using screenshots on Downloads Layout (front Page):
<div class="jd_clear jd_image_right">{screenshot_begin} <a href="{screenshot}" rel="lightbox"><img src="{thumbnail}" alt="" /></a>{screenshot_end}</div>

I don't use modules, am using content as <div>{jd_file updated==99}</div>


I really appreciate any help! Thanks
Title: Re: Navigation photos on Layout (Downloads) as Next and Previous?
Post by: ColinM on 22.01.2022 00:01:30
Hi
Not sure I quite understand!  But I think what you are asking is that when you have multiple images in a Download you like to see them one at a time wth a 'next, and 'previous' arror as appropriate.

Is that correct/
Colin
Title: Re: Navigation photos on Layout (Downloads) as Next and Previous?
Post by: ibrahim on 22.01.2022 05:15:40
Hi Colin! Yes, it's correct this is missed on the Downloads layout and it's working on (Download Details).
So what do I need to change or add on downloads layout that have following code:
<div class="jd_clear jd_image_right">{screenshot_begin} <a href="{screenshot}" rel="lightbox"><img src="{thumbnail}" alt="" />[/url]{screenshot_end}</div>
Title: Re: Navigation photos on Layout (Downloads) as Next and Previous?
Post by: ColinM on 22.01.2022 14:50:52
Ibrahim,
Presently I am using an XAMPP test site.    Have a Download file with three pics.
As you said in the Dowload view only one pic is shown. The Detail View, see attached, shows 3 separate pics.

But somewhere in the past I now have a faint recollction that one can have a view with 'arrows' to step through the pics.

it must be some extra utility in PHP. Have noticed that  ImageMagick PHP Module 'Imagick' is missing and might be the cause but probably not as Imagick is used to create an image and a thumbnail from a pdf file.

I will check on another site.
Colin
Title: Re: Navigation photos on Layout (Downloads) as Next and Previous?
Post by: ibrahim on 22.01.2022 23:27:28
Hello ColinM! On my server, the ImageMagick is active, and am not using a pdf it is just imaged as png, gif and jpg. See attached screenshot of ImageMagick
Thanks for your time and hope you figure this out.
Title: Re: Navigation photos on Layout (Downloads) as Next and Previous?
Post by: ColinM on 23.01.2022 10:57:08
Ibrahim,
I have tried on another server which did have Imagick enabled. But got same result.  So not that.
Could you send me a pic of your Download Detail page that is showing the arrows please.  The one with the images in a gif is not the one.
Title: Re: Navigation photos on Layout (Downloads) as Next and Previous?
Post by: ibrahim on 23.01.2022 13:56:21
Hello, I will pm you the site link!