This is a nice solution, "&" works and <br /> works as a linebreak too.

Thank you!

the only solution would be to make a config.xml schema change so the gallery title is a tag instead of an attribute. then we can use a CDATA element, where "&" and the others are no problem . . .

3

(3 replies, posted in Juicebox-Pro Support)

Steven,

Thanks for your support, I appreciate your help!

It could be done that way. If you have virtual copies, you could do a F2 rename extending the orignal filename with a version before each export.

I came up with the following solution/hack.

The config.xml template in the plugin package:

<image imageURL="images/<%= getImage(index).exportFilename %>.jpg?<%= getImage(index).metadata.title %>"
    thumbURL="thumbnails/<%= getImage(index).exportFilename %>.jpg?<%= getImage(index).metadata.title %>"
    linkURL="images/<%= getImage(index).exportFilename %>.jpg?<%= getImage(index).metadata.title %>"
    linkTarget="_blank">
        <caption><![CDATA[<%= getImage(index).metadata.caption %>]]></caption>
  </image>

I reused the "Title" attribute of the plugin, set it to contain userdefined text. In this text I will increment the version number before each export. "2012091801" in the following example.  The resulting config.xml look like that:

...

  <image imageURL="images/2012081700_0449.jpg?2012091801"
    thumbURL="thumbnails/2012081700_0449.jpg?2012091801"
    linkURL="images/2012081700_0449.jpg?2012091801"
    linkTarget="_blank">
        <caption><![CDATA[2012081700_0449 – Grün]]></caption>
  </image>
    

  <image imageURL="images/2012081700_0471.jpg?2012091801"
    thumbURL="thumbnails/2012081700_0471.jpg?2012091801"
    linkURL="images/2012081700_0471.jpg?2012091801"
    linkTarget="_blank">
        <caption><![CDATA[2012081700_0471 – ]]></caption>
  </image>

...

The caching problem was solved with this hack.

is there a chance that such a field will be included in future version of the plugin, or could that be done by myself?

Many thanks,

Fabian

what a pitty but ok for me.

5

(3 replies, posted in Juicebox-Pro Support)

Hi,

I make juicebox galleries with images to show editing progress to my customer. So, from time to time i overwrite the existing gallery with a new one, exported from lightroom.

My problem is that the images are cached, an my client never sees the new ones, except if he clears the browser cache before.

caching of the config.xml could be circumvented if i add a random query to the image url, like

new juicebox({
                containerid : 'juicebox-container'
                , configUrl :'config.xml?' + (new Date()).getTime()                
            });

which is fine, as the config.xml is a small file ...

in the same manner, the caching of the image could be circumvented if i add a random query to the image url, like "http://url/image.jpg?12345679" (in the lightroom template config.xml). But this will load the image every time which is a bit much for the size of the images ...

Is there a Lightroom variable from the photo in the style of "getImage(index).metadata.caption" which i can use to form a "image version", to prevent caching? like the field "date of metadata". Or an export wide time stamp would also work.

Any ideas, how this could be done?

Thanks in advance,

Fabian

As i discovered with the "&" char in title (http://juicebox.net/forum/viewtopic.php?id=296) the "<br />" can probably been used in the title if written like that: "&lt;br /&gt;". Quick test worked so far for me.

If I use a title with an "&" in it, the preview in Lightroom will not render and the generated config.xml will not work. Changing the "&" to "&amp;" in the title or in the config.xml will make things work again.

Using juicebox 1.1.1 and lightroom plugin v1.1.1

Fabian