madeyourday / contao-rocksolid-slider

RockSolid Slider Contao Extension
http://rocksolidthemes.com/de/contao/plugins/responsive-slider
Other
9 stars 7 forks source link

Lightbox buttons always jump to the first item #58

Closed johannes-bittner closed 6 years ago

johannes-bittner commented 6 years ago

Setting up an image gallery slider, you can activate the navigation arrows for the slider als well as for the thumbs. Activating the lightbox function for the images, one can open the image of the active slide in the default lightbox - but when using the previous/next buttons within the lightbox, the lightbox jumps to the first image of the slider. This is kind of annoying, when you activate the lightbox from one of the images in the middle of the slider and want to continue in the lightbox as you jump back to the start. Bug or hidden feature?

ausi commented 6 years ago

This is related to the default lightbox script of Contao. You can use a custom lightbox script and overwrite the script_lightbox block of the rsts_default.html5 template: https://github.com/madeyourday/contao-rocksolid-slider/blob/2f0545e02113275ee7908f05a64e2ed6c3cd59a8/src/Resources/contao/templates/rsts_default.html5#L253-L307