-
-
Notifications
You must be signed in to change notification settings - Fork 2
Rocksolid Slider: es wird die ganze Seite in Lightbox geladen #3
Comments
The problem is that the <a data-rsts-type="…" href="files/upload/blog/Bildergalerien/20201210_RIP Paolo Rossi/1_IMG_8649.JPG" data-lightbox="57593c" title="…" data-rsts-thumb="…">
…
</a> You need to make sure that the |
Thank you for your quick response. I wrote to the Rocksolid support to get their help. As soon as I have the solution I will post it here. |
I got this answer from Rocksolid but still, one of the pictures cannot be shown in the lightbox although I set everything properly. There are 6 pictures but in the lightbox are only 5. |
That is because the RockSolid Slider dynamically adds images afterwards (even though there were all present in the beginning in the HTML source). If you inspect the DOM after loading the page you can see, that only 5 slides are actually present at first. The 6th slide will be added once you start going through the slides. Presumably, the initialisation of the slider happens before the initialisation of the lightbox script and thus the lightbox only sees those 5 images. |
Ok, it seems to be an error in the rocksolid slider still. I set it so that all slides should be there. I already contacted them to check this behaviour. |
I am not sure that's an error. Might just be a specific behavior of the RockSolid Slider. You might need to implement your own Lightcase initialisation, which also happens once the RockSolid Slider is initialised (may be the RockSolid Slider fires an event). |
Their recommendation is to preload all slides - see here. I set it but it seems that it does not work. |
Sorry, but I cannot help you with that of course ;). I can only observe, that on your linked site, only 5 slides are present in the DOM. |
I know. I appreciate your help very much. :-) I'm just waiting for the response from them and I will post the solution here. |
In the following script which is in the slider template, it must be something else because is originally written for colorbox
|
In general, if the slider works without loop your extension works properly. If I set it with looping it cannot work properly. That's why it's necessary to change the code for the slider. If you have any idea I would be very thankful. |
Hello, I also have this problem. I would be very grateful for a solution. Bye Markus |
Hallo,
ich habe es mit Rocksolid Slider ausprobiert und leider wird da die ganze Seite in der Lightbox geladen und gezeigt, obwohl da der Attribut data-lightbox in a-Tag steht. Als Vergleich steht da auch eine Bildergalerie, wo es funktioniert.
Ich vermute, dass ich noch etwas im Script deiner Erweiterung einstellen muss?
The text was updated successfully, but these errors were encountered: