Customise Ticket display
Page: 1, 2
ncrossland
on Aug 7. 2008. 9:31 am
Is it possible to customise the display of the Ticket list, to also display the category and assignee next to each ticket?
ncrossland
on Aug 7. 2008. 2:06 pm
Thanks for the quick response. I've managed to get the assignees to show up:
<td class="name">{if $ticket->hasAssignees()}<span style="background-color: #F4E4C5; padding:0 3px;"> {object_assignees object=$ticket} {/if}</span>
But I can't get the category -- the category is not displayed on the View page, so nothing to copy. Any ideas?
Thanks
<td class="name">{if $ticket->hasAssignees()}<span style="background-color: #F4E4C5; padding:0 3px;"> {object_assignees object=$ticket} {/if}</span>
But I can't get the category -- the category is not displayed on the View page, so nothing to copy. Any ideas?
Thanks
ncrossland
on Aug 7. 2008. 3:12 pm
Thanks, that's brilliant.
I added some code so it lists the assignees, and if we are not viewing a specific category (when they would all be the same), it shows the category of each ticket. If anyone else is interested, here's what I added:
After:
Add:
Is there any templating mechanism for avoiding overwriting these changes with future upgrades?
I added some code so it lists the assignees, and if we are not viewing a specific category (when they would all be the same), it shows the category of each ticket. If anyone else is interested, here's what I added:
After:
<td class="name"><a href="{$ticket->getViewUrl()}">{$ticket->getName()|clean}</a> </td>Add:
<td class="name">{if $ticket->hasAssignees()}<span style="background-color: #F4E4C5; padding:0 3px;"> {object_assignees object=$ticket} {/if}</span>
{if !$active_category->isLoaded()}
<td class="name">
{if $ticket->getParentId()}
<span style="background-color: #eee; padding:0 3px; white-space:nowrap; "> {category_link object=$ticket}</span>
{/if}
</td>
{/if}Is there any templating mechanism for avoiding overwriting these changes with future upgrades?
ncrossland
on Aug 7. 2008. 3:45 pm
Ilija Studen:No, there is not at the moment. These type of hacks needs to be maintained manually.
That's fine, as long as I know! Thanks for your help.
forestcall
on Sep 10. 2008. 7:24 am
THanks!!! I just implemented this and it is soooo helpful!!
www.medialabpro.com
ncrossland
on Sep 10. 2008. 8:57 am
Attached is a screenshot of how it looks, in case anyone else is interested.
I've also added an edit button beside each ticket, since I nearly always want to edit a ticket, rather than just view it.
I've also added an edit button beside each ticket, since I nearly always want to edit a ticket, rather than just view it.
Thanks for the screen shot ncrossland! I was just about to ask and then saw your post. Looks like a cool simple mod to get that little bit extra out of this page. I'll be updating my aC with this soon.



