BryanB Posted May 6, 2010 Share Posted May 6, 2010 I'm trying to find a way to display all attachments from a ticket at the top of the ticket in the client area, and only the attachments from an admin. After looking at the viewticket.tpl I was thinking of something like this: {if $reply.admin && $reply.attachments} {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}{/if} but I'm not sure about the second part and how to display all attachments, 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.