Hi all, I updated the Omeka wiki with a LightBox tutorial based on
Dhanushka's 'WildCat' theme. See:
http://omeka.org/codex/Adding_LightBox_to_Omeka
The only remaining issue (for me, at least) is that the code for
calling up the image thumbs returns a thumbnail for each item file,
and each of the thumbnails are identical and based on the first
image. (For a clear illustration, see here:
http://www.ohiocivilwar150.org/omeka/items/show/1754).
I think ideally, since LightBox has a built in method for browsing
multiple files as a gallery, we would only want to display the first
thumbnail. Can anyone help me out with this?
Here's the existing code:
<!-- The following returns all of the files associated with an item. --
>
<div id="itemfiles" class="element">
<h3>Files</h3>
<div class="element-text">
< ?php
if (item_has_thumbnail())
{
$item = get_current_item();
$files = $item->getFiles();
foreach($files as $file)
{
echo '<a href="' . file_download_uri($file) . '"rel="lightbox
[group]" class="download-file">';
echo item_square_thumbnail();
echo '</a>';
}
}
else
{
echo display_files_for_item();
}
?>
</div>
</div>
Thanks - Erin
On Oct 23, 8:37 am, Dhanushka Samarakoon <
dhan...@gmail.com> wrote:
> cool... glad u got that working :-)
>