Topic: Thumb Paging Text

I would like to show thumb paging text in my gallery, but when I select the option to showPagingText (set to true), it shows (as example) 1-4 indicating the number of thumb pages. I want to show the number of thumbnail images, ex: 1-57. Is this possible with a default setting?

Re: Thumb Paging Text

Unfortunately, it is not possible to display the total number of images as part of the thumbnail paging text.

As a possible alternative, you could fetch the total number of images in the gallery using the Juicebox-Pro API getImageCount() method. You could then display the information elsewhere on your web page alongside your gallery.

For example:

<script src="jbcore/juicebox.js"></script>
<script>
    var jb = new juicebox({
        containerId: 'juicebox-container',
        galleryWidth: '800',
        galleryHeight: '600'
    });
    jb.onInitComplete = function() {
        var total = jb.getImageCount();
        $('#count').html('<p>Total Image Count: ' + total + '</p>');
    };
</script>
<div id="juicebox-container"></div>
<div id="count"></div>