Topic: Configuration of defaults for Lightroom Plugin

I have looked for, without finding, a general description of how to set up default options so that a new gallery, created in Lightroom using Juicebox-Pro, will have specific characteristics.

For instance, with what priority does the Lightroom/Juicebox interface work with manually setting options in the juiceboxgallery section of the config.xml and also when and how should one use the entry box for Pro options. I tried, for instance, to set the background color through config.xml but it didn't work; it appears it needs to be set in the UI.

Is it possible to set all Pro Options and basic settings to preferred settings and where should that be done?

Re: Configuration of defaults for Lightroom Plugin

When using the Lightroom plugin, all options are intended to be set via the interface.
Default options are stored in the 'galleryInfo.lrweb' file which is compiled and cannot be modified but if you change any settings in the interface, they should be remembered the next time you open Lightroom.
If you like, you can override the interface and set a value to be used in all galleries by modifying the 'config.xml' file in the 'juicebox.lrwebengine' folder.
For example, to use thumbnail dots in all galleries, change:

useThumbDots="<%= model.nonCSS.jb_useThumbDots %>"

... to:

useThumbDots="TRUE"

In this example, the 'Use Thumbnail Dots' checkbox will be ignored in the interface and useThumbnailDots="TRUE" will be used in all galleries created by the plugin.

how should one use the entry box for Pro options

Please see Step #4 in the 'Upgrading to Juicebox-Pro' section on the Lightroom Plugin page.

I tried, for instance, to set the background color through config.xml but it didn't work; it appears it needs to be set in the UI.

The background color can be set in a gallery's XML file but because the plugin sets the background color in the embedding code (as in our example code here) it overrides the value in the XML file.
The order of option precedence can be found in the Setting Config Options section.
If you want to set a background color for all galleries, open the 'juicebox.lrwebengine/index.html' file in a plain text editor and change:

backgroundColor: '<%= rgba(model.nonCSS.jb_backgroundColor_, model.nonCSS.jb_backgroundOpacity) %>',

... to:

backgroundColor: '#222222',

... changing the hex color code as appropriate.

Re: Configuration of defaults for Lightroom Plugin

Steven:

Thanks for the reply. I have been working on this and I'm still having problems.

I understand from what you write that generally options controlled from the user interface should be controlled that way, and most others can be controlled through the config.xml file. Some options, but just a few, should be controlled through editing the index.html file.

However, perhaps I am missing something but when I enter code like this into the config.xml file it does not work:

    showNavButton="TRUE"
    captionPostion="NONE"

and yet

    thumbSelectedFrameWidth="3"

does work.

Is there something non-logical going on like only the first value is getting picked up. I've experimented but don't understand what's happening.

Re: Configuration of defaults for Lightroom Plugin

You have errors in the names of your configuration options.
showNavButton should be showNavButtons and captionPostion should be captionPosition.

Re: Configuration of defaults for Lightroom Plugin

Yikes, I can't believe I'm being that sloppy. Thanks for the specific and helpful instructions.

Re: Configuration of defaults for Lightroom Plugin

All my options are working properly except for one. I'd like the thumbnails to be hidden by default, but to have the thumbnail button displayed so that they can be used if the viewer wants them. The other options work

        useFlickr="false"
    galleryTitle="<%= escape(trim(model.nonCSS.jb_galleryTitle)) %>"
    textColor="<%= rgba(model.nonCSS.jb_textColor_, model.nonCSS.jb_textOpacity) %>"
    thumbFrameColor="<%= rgba(model.nonCSS.jb_thumbColor_, model.nonCSS.jb_thumbOpacity) %>"
    showOpenButton="<%= model.nonCSS.jb_showOpenButton %>"
    showExpandButton="<%= model.nonCSS.jb_showExpandButton %>"
    showThumbsButton="TRUE"
    useThumbDots="<%= model.nonCSS.jb_useThumbDots %>"
    useFullscreenExpand="<%= model.nonCSS.jb_useFullscreenExpand %>"
    showThumbsOnLoad="FALSE"
    showImageOverlay="NEVER"
    showOverlayOnLoad="FALSE"
    thumbSelectedFrameWidth="4"
    showNavButtons="TRUE"
    showInfoButton="TRUE"
    captionPosition="OVERLAY"
    galleryTitlePosition="NONE"
    thumbHoverFrameWidth="2"

Thanks very much

Re: Configuration of defaults for Lightroom Plugin

It sounds like you may be using an older version of Juicebox-Pro prior to the showThumbsButton and showThumbsOnLoad configuration options being introduced in v1.3.0. (For a full list of changes, please see the Version History.)

If this is the case, then upgrade your Lightroom plugin to use the current version of Juicebox-Pro (v1.3.2) by following the instructions on this web page.
For details on how to get the latest version of Juicebox-Pro, please see the Upgrading Juicebox page.

8 (edited by jonz 2013-09-13 15:06:54)

Re: Configuration of defaults for Lightroom Plugin

Replaced the jbcore in the plugin directory and now things are totally working. Thank you.