Closed (fixed)
Project:
Juicebox HTML5 Responsive Image Galleries
Version:
7.x-2.1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Oct 2016 at 08:53 UTC
Updated:
7 Feb 2017 at 15:04 UTC
Jump to comment: Most recent
Comments
Comment #2
briankb commentedComment #3
rjacobs commentedI don't think that this is the kind of thing that can be considered a supported "feature" of this module. The issues you have is that Juicebox galleries are mostly generated client-side by the Juicebox javascript library. Part of this generation process requires making a separate javascript-initiated (AJAX-like) web request to fetch the gallery configuration via an XML response. This module makes all of that transparent within Drupal, but it is still a dynamic process.
All that said there are certainly still ways to do what you need to do. The missing piece is that your wget call does not trigger a request to the gallery XML (because this is ultimately done in JS on the browser-side). If your static copy of the site also contained static copies of this XML (at the same relative path it lives in your non-static site) then I think things would work. So if you scrape your site with a tool that executes the JS then I think that XML would get extracted statically just fine (I'm not aware of any way to do this with wget though). Or, if you only have a few galleries to capture, you could manually run a wget request directly to the XML paths for each gallery individually.
Comment #4
rjacobs commentedI have not heard back in a while. Should we leave this open an longer?
Comment #5
briankb commentedThanks Ryan for that advise. My apologies for the late response. I got preoccupied with some other projects but back on the one that had that XML issue.
Ideally, where are the XML files located on a non-static site i.e. a live Drupal site?
Comment #6
rjacobs commentedThe XML is generated dynamically just like any other Drupal page. So there is no static storage of XML files. Sorry, I probably didn't explain that detail very well in my last comment. When I said that XML "lives" at a specific location I just just meant that there is a unique URL, that does not change, for the XML of each gallery. The XML is then generated dynamically upon a request to that URL.
If you are logged-in as an administrator you'll see a little "gear" icon when hovering over the upper-right corner of the gallery. Clicking on that will reveal some options, including a link to the XML itself. If you point your crawler (wget) to that XML URL manually you should be able to grab it statically.
Comment #7
briankb commentedThanks. I'll try what you've suggested and get back to you ASAP.
Comment #8
briankb commentedHi,
Sorry for getting back this late. Happy new year!
I followed your advice and it worked. Thank you. But I have a "million" of xml files to pull :)
You can now close this issue.
Comment #9
rjacobs commentedI'm glad that you were able to fine a solution... even if it's slightly cumbersome. Thanks for following-up.