Many thanks for the tip @Rinker!
If it helps others, I was able to make it work using this in my Gallery template
Code: Select all
<div class="gallery">
<div class="row img">
{foreach from=$images item=image name='featured'}
<div class="col-md-4">
<a href="{$image->file|escape:'url'|replace:'%2F':'/'}" data-title="{$image->titlename}" data-lightbox="cmsmsgallery{$galleryid}"><img src="{$image->thumb|escape:'url'|replace:'%2F':'/'}" alt="{$image->titlename}" class="img-responsive" /></a>
<h2>{$image->titlename}</h2>
<p><strong><em>{$image->fields.credits.value}</em></strong></p>
<p>{$image->comment|strip_tags|escape:'html'}</p>
</div>
{if $smarty.foreach.featured.iteration is div by 3}
</div><div class="row img">
{/if}
{/foreach}
<div class="galleryclear"> </div>
</div>
</div>
This will be super helpful in other modules as well.