Use regular thumbnails with Lightbox

Hello,

Im using Omeka 2.4.1 and the Berlin Theme and the Lightbox Package. I am trying to change the thumbnails on the items/show pages from square thumbnails to regular thumbnails.

I’ve tried to change the code in berlin/items/show.php to:

<?php echo item_image_gallery(array('imageSize' => 'thumbnail','link'=>array('data-lightbox'=>'lightbox'))); ?>

But that doesn’t work.

If I don’t use Lightbox and use:

<?php echo files_for_item(array('imageSize' => 'thumbnail')); ?>

Then I get the non-square thumbnails that I want but I also need to somehow get the Lightbox effect.

Can anyone point me in the right direction?

http://sag-ufv.ca/exhibits/show/don-t-be-afraid/item/189

Thanks!

The right direction is here: http://omeka.readthedocs.io/en/latest/Reference/libraries/globals/item_image_gallery.html?highlight=item_image_gallery

You should put the image size as the second parameter, so it should go like this:
> <?php echo item_image_gallery(array('link'=>array('data-lightbox'=>'lightbox')), 'thumbnail'); ?>

If you want to use the files_for_item(), this is also possible with lightbox (see here: http://omeka.readthedocs.io/en/latest/Reference/libraries/globals/files_for_item.html?highlight=files_for_item)

The common problem of both the functions and lightbox is, that the lightbox takes the image url from the “href” property of the <a> tag, so this is the ‘original’ file by default. In my case this is usually a large file that makes lightbox to dramatically slow down. I wonder if there is a way to generate url for the ‘fullsize’ image instead, using one of the functions? So far I had to do it a different way.

Got it. Working now. Thanks!