Topic: Cleaning Up config.xml
If you have a gallery that you've played with for a while, changing settings back and forth, this might interest you.
Start JuiceboxBuilder (JbB) - New Gallery. Then import a few images, and make no further changes. Go directly to Publish, and do so.
It's interesting to see what JbB creates on it's own. Here's the settings section of config.xml:
imageQuality="99"
thumbQuality="99"
useLargeImages="true"
largeImageQuality="99"
useSmallImages="true"
smallImageQuality="99"
None of which are in the Config Guide.¹ https://www.juicebox.net/support/config_options/
The interesting ones (for now) shown below, the rest of the options set maximum image quality.
useLargeImages="true"
useSmallImages="true"
This creates three sets of images for the gallery, Small, reg, large. Small screen mode for phones and smaller tablets. And images 1024x768 pixels or bigger for larger screen devices.
Now lets change something in JbB and see what happens to config.xml.
Side Note: config.xml and index.html are really a pair of files to be considered together. JbB changes both files depending on settings selected.
In JbB, lets change the 'show open button' setting in the Lite Section. Then re-read config.xml:
imageQuality="99"
thumbQuality="99"
useLargeImages="true"
largeImageQuality="99"
useSmallImages="true"
smallImageQuality="99"
showOpenButton="false"
The new settings are added to the bottom on config.xml.
Now we're getting to the point of this post.
Let's reset 'show open button' back to the original setting, using JbB. And re-read config.xml:
imageQuality="99"
thumbQuality="99"
useLargeImages="true"
largeImageQuality="99"
useSmallImages="true"
smallImageQuality="99"
showOpenButton="true"
Now, there will always be a setting for 'show open button' in your config.xml.
If you've enjoyed playing with the many options in JuiceboxBuilder, you config.xml could be quite large. I don't know what performance that might make on slower, low powered devices. It just makes sense the leaner config.xml is the better.
And if you're like me and it doesn't take much of a reason to go mucking about with things, here we go.
Continued in Part Two.
DX2300
¹ as worded in config.xml. The are options to include or not, the small and large images in JbB.