Jump to content

Display all attachments in ticket?


BryanB

Recommended Posts

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated