
I'd like to see the creation date/time displayed on every article by AgentZoomBody.dtl, especially as we have the following set $Self->{TicketZoomExpand} = 1; $Self->{TicketZoomExpandSort} = 'reverse'; resulting in the dates in the threading section above the articles being shown in the reverse order of the articles, and because it soon disppears when scrolling through the articles. I've tried to do this myself by modifying AgentZoomBody.dtl with a "Date" line after "Subject", as follows: <tr> <td valign="top"><b>$Text{"Subject"}:</b></td> <td> $Data{"Article::Subject"}</td> </tr> <tr> <td valign="top"><b>$Text{"Date"}:</b></td> <td> $Data{"Article::CreateTime"} </td> </tr> However, no value gets displayed opposite "Date:". But if I substitute SenderType or ArticleID in place of CreateTime I do get appropriate values displayed. I don't much understand Perl, but my guess was that AgentZoomBody.dtl accessed the data put together by AgentZoom.pm here: # article data my %Article; $Article{ContentPath} = $$Data{content_path}, $Article{ArticleType} = $$Data{article_type}; $Article{SenderType} = $$Data{sender_type}; $Article{ArticleID} = $$Data{id}; $Article{From} = $$Data{a_from} || ''; $Article{To} = $$Data{a_to} || ''; $Article{Cc} = $$Data{a_cc} || ''; $Article{Subject} = $$Data{a_subject} || ''; $Article{Body} = $$Data{a_body}; $Article{CreateTime} = $$Data{create_time}; Am I mistaken? If so, how can I get at the individual articles' creation times. I'm using 1.1.1-01. Jim

Hi Jim, On Thu, Jun 05, 2003 at 04:05:53PM +0100, Jim Wight wrote:
I'd like to see the creation date/time displayed on every article by AgentZoomBody.dtl, especially as we have the following set [...]
A nice idea. :) I added it to the CVS (1.1 and HEAD). Thanks!
Jim
Martin -- Martin Edenhofer - <martin at edenhofer.de> - http://martin.edenhofer.de/ -- "Security is a process, not a product." - Bruce Schneier

Martin Edenhofer writes:
On Thu, Jun 05, 2003 at 04:05:53PM +0100, Jim Wight wrote:
I'd like to see the creation date/time displayed on every article by AgentZoomBody.dtl, especially as we have the following set [...]
A nice idea. :) I added it to the CVS (1.1 and HEAD).
Thanks, but it seems I shall have to wait until I upgrade to be able to use it (I'm still at 1.1.1-01). I downloaded the files that seemed to have been modified, viz. Agent.pm and {Standard,Lite}/AgentZoomBody.dtl, but there must be other dependencies as I got not tickets at all displayed in QueueView. If I reinstated Agent.pm I got the QueueView back, but, not surprisingly, there was no data opposite "Created:" in the Zoom view. Jim

Hi Jim, On Tue, Jun 17, 2003 at 03:33:13PM +0100, Jim Wight wrote:
I'd like to see the creation date/time displayed on every article by AgentZoomBody.dtl, especially as we have the following set [...]
A nice idea. :) I added it to the CVS (1.1 and HEAD).
Thanks, but it seems I shall have to wait until I upgrade to be able to use it (I'm still at 1.1.1-01). I downloaded the files that seemed to have been modified, viz. Agent.pm and {Standard,Lite}/AgentZoomBody.dtl, but there must be other dependencies as I got not tickets at all displayed in QueueView. If I reinstated Agent.pm I got the QueueView back, but, not surprisingly, there was no data opposite "Created:" in the Zoom view.
There are other dependencies. Update to the upcoming 1.1.3 (~end ot this week) and it will work.
Jim
Martin -- Martin Edenhofer - <martin at edenhofer.de> - http://martin.edenhofer.de/ -- Old programmers never die. They just branch to a new address.
participants (2)
-
Jim Wight
-
Martin Edenhofer