1 (edited by DX2300 2020-01-08 19:42:04)

Topic: Manually editing 'config.xml' and 'index.html' files

Let just say you've uploaded your new gallery and while admiring it you discover a minor typo or punctuation error.

Fire up JuiceBox, make the edit. Publish. Upload to server,. Or,
If your host allows editing a document on the server, (I guess most do) you can directly edit:

config.xml
index.html

of the gallery in question.

The upper part of config.xml looks like:

showAudioButton="false"
    showInfoButton="false"
    showNavButtons="false"
    showAutoPlayButton="false"
    backButtonPosition="OVERLAY"
    backButtonUseIcon="true"
    galleryTitlePosition="TOP"
    maxThumbColumns="8"
    enableDirectLinks="false"
    useFullscreenExpand="true"

Those are gallery settings and is beyond this post to explain. But at the bottom of config.xml:

 <image imageURL="images/wborg2.jpg"
    thumbURL="thumbs/wborg2.jpg"
    linkURL="images/wborg2.jpg"
    linkTarget="_blank"
    sourcePath="C:\Users\mypc\Desktop\PC Done\wborg\wborg2.jpg">
    <title><![CDATA[]]></title>
    <caption><![CDATA[This is an example of a text errerrerr. .]]></caption>
  </image>

<caption><![CDATA[ is the text that needs correcting. The word error is misspelled.
index.html needs the same correction. 

- config.xml is instructions for the galleries (including gallery captions)
- index.html is instructions for the web browser if it can't do javascript. To display the captions text with the image.

This way you can fast simple edits.

DX2300

Edit: Please remember whatever you do to your galleries, you are solely responsible.

Re: Manually editing 'config.xml' and 'index.html' files

That's right, the 'config.xml' file can be opened (and edited) in any plain text editor.

Just to avoid any confusion, captions are included in the 'index.html' file only if the 'Add SEO Content' checkbox is selected in JuiceboxBuilder-Pro's 'Customize -> Sharing' section. The SEO Content is included primarily for SEO purposes (please see here for further details) but it also has the added bonus of allowing the images (and captions) to be seen in browsers which have JavaScript disabled.

Re: Manually editing 'config.xml' and 'index.html' files

Please remember to make the same edits in your local copy or the two copies will fork.  :(

DX2300