Shouldn't this work?
$items = get_items(array('withImage' => true,'featured'=>true,'recent'=>true), 10);
I'm trying to use it like so, in combination with a jQuery slideshow...
<div id="showcase" class="showcase">
<?php
//this loops the most recent featured items
$items = get_items(array('withImage' => true,'featured'=>true,'recent'=>true), 10);
set_items_for_loop($items);
while(loop_items()):
?>
<?php $index = 0; ?>
<?php while ($file = loop_files_for_item()): ?>
<?php if ($file->hasThumbnail()): ?>
<!-- this makes sure the loop grabs only the first image for the item -->
<?php if ($index == 0): ?>
<?php echo '<div><img src="'.item_file('fullsize uri').'"/>'; ?>
<!--uncomment the next line and activate thumbs in settings to use thumbnails for gallery nav-->
<?php //echo '<div class="showcase-thumbnail"><img src="'.item_file('square thumbnail uri').'"/><div class="showcase-thumbnail-caption">'.item('Dublin Core', 'Title').'</div><div class="showcase-thumbnail-cover"></div></div>'; ?>
<?php endif; ?>
<?php endif; ?>
<?php endwhile;?>
<?php
echo '<div class="showcase-caption">';
echo /*Item Title/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>';
?>
<?php endwhile; ?>
</div>
I see a post here from a while back regarding a related problem, and instructing to use a custom function to get an item with an image:
http://omeka.org/forums/topic/featured-collection-exhibit
But I also see that there is a parameter for this function that already accomplishes this:
http://omeka.org/codex/Theme_API/display_random_featured_item
So I guess part of my question is to ask if $withImage will ever become a more broadly used parameter (perhaps with 1.3?) and the other is how I might adapt the custom function above to fit my loop.
I'll keep plugging away on this and hopefully figure something out, but any info or help is welcome.
Thanks,
Erin