BryanB Posted May 10, 2010 Share Posted May 10, 2010 I'm trying to display attachments on viewticket.tpl in 3 columns but I'm not sure how to get smarty templates to display an array in columns. This is what I'm working with: {foreach from=$reply.attachments key=num item=attachment} <img src="images/article.gif" class="absmiddle" border="0" alt="{$attachment}" /> <a href="dl.php?type=ar&id={$reply.id}&i={$num}">{$attachment}</a><br /> {/foreach} Right now it just lists them all right under each other, but instead I would like to divide the attachments in to 3 columns, so if there were 12 it would make 3 columns of 4. Any ideas? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.