Hi, I've just upgraded to v1.3 and have encountered an error that I'm having a hard time resolving.
The first appears (?) to be related to changes in the way Omeka loops items (noted in changelog Fix for ticket #787). This in particular is causing a fatal error where it previously worked:
echo item_file('fullsize uri')
The full code I'm using is below, but the source of the error seems to be the item_file() line.
function deco_display_awkward_gallery(){
//this loops the most recent featured items
$items = get_items(array('featured'=>true, 'recent'=>true,'type'=>'Still Image'), 10);
if ($items!=null)
{
set_items_for_loop($items);
while(loop_items()):
$index = 0;
while ($file = loop_files_for_item()):
if ($file->hasThumbnail()):
//this makes sure the loop grabs only the first image for the item
if ($index == 0):
echo '<div><img src="'.item_file('fullsize uri').'"/>';
endif;
endif;
endwhile;
echo '<div class="showcase-caption">';
echo /*Item Title and Link*/'<h3>'.link_to_item().'</h3>';
echo /*Item Description Excerpt*/'<p>'.item('Dublin Core', 'Description',array('snippet'=>190));
echo /*Link to Item*/ link_to_item(' ...more ').'</p></div></div>';
endwhile;
}else
{
echo'<div><img src="'.WEB_ROOT.'/themes/deco/images/emptyslideshow.png" alt="Oops" /><div class="showcase-caption"><h3>UH OH!</h3><br/><p>There are no featured items right now. You should turn off "Display Slideshow" in the theme settings until you have some.</p></div></div>';
}}
Thanks -- Erin