-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lightboxes with a iframe triggered by an image with class="no-lightbox" use to work on 0.9.2 but they stopped working in 0.10.0 #317
Comments
Did you check out https://github.com/Treesaver/treesaver/wiki/LightBox otherwise I can only try to help you when I see a live preview of the site Sorry! |
Hi! :) Thanks for the reply. I read the docs but there is nothing that hints on what the difference might be. This is the same document I followed to create the slideshow in the first place in 0.9.2. I did not change anything on either the content, the resources o any code except switching the treesaver.js to the 0.10.0 version. Unfortunately at the moment I reverted the development server back to 0.9.2 because we are preparing for a release. So I don't have an instance running with the problem right now. I will come back to this as soon as the release is done. In the meanwhile, if somebody knows anything about any changes to the "zoomable" or lightbox feature from 0.9.2 to 0.10.0 then I would be really grateful for a heads up. Thanks a lot. |
I am working on a Treesaver project too. If you are interested to exchange |
Hi! I advanced the development server back to 0.10.0 so I can send you the example of the problem. This is a page with 0.9.2 (works as expected when you click "Slideshow"): This is the same page with 0.10.0 (does not show the slideshow as it is supposed to): The slideshow should be included on an iframe inside the lightbox. The URL of the slideshow that should be loaded into the iframe is: I am interested on how you are using treesaver. I have integrated it in Django to be able to more easily manage the content. I will email you about this so we can exchange some ideas. Thanks a lot for the help! |
I think it relates to this feature #105 |
I don't think this was removed, at least not voluntarily. I will investigate over the weekend. |
I see what's happening, and I think 0.10.0 is doing the right thing. tl;dr: replace
with
That should fix it. Long story: in 0.9.x we picked the "best" size to show in the lightbox by looking at the sides of the rectangle, whereas in 0.10.x we use the area, which is a better approximation. BTW you have |
Thanks a lot, That's exactly what I needed. Everything is working properly now. :) Great! :) |
I had a bunch of lightboxes with an iframe inside in 0.9.2 and now (with 0.10.0) they do not show the iframe anymore. Instead they show the first image that is used to trigger the lightbox that is supposed to not be included on the lightbox because it has class "no-lightbox".
The desired behaviour (That works well in 0.9.2) is to have an image on the article that when clicked it will open a lightbox with an iframe poiting to anothe page that renders a slideshow.
You can see the production site that is working fine with 0.9.2 (except in FF of course) at http://jaarverslag.zeeuwsmuseum.nl/
If you browse through the articles you will see some images with a "Slideshow" button that opens the lightbox with the iframe. Now, with 0.10.0 it just shows the same image with the same slideshow button inside the lightbox.
What were the changes to the lightbod rendering? Is there any documentation on that?
The text was updated successfully, but these errors were encountered: