How do I add the header information to AgentTicketZoom view? I know there is a plain format that can do that but what I need is for it to show it in the ticket view instead of the plain format view. http://server/otrs/index.pl?Action=Agen ... TicketID=1
I need the following for every message.
From:
To:
Date:
Subject:
then the message.
Any help would be greatly appreciated as I've been scratching my head trying to figure out how to add this.
Add Header information to AgentTicketZoom
Moderator: crythias
-
- Znuny expert
- Posts: 241
- Joined: 06 Feb 2009, 11:15
- Znuny Version: 3.0.x
- Company: Perl-Services.de
- Contact:
Re: Add Header information to AgentTicketZoom
It's quite simple:
In Kernel/Modules/AgentTicketZoom.pm you'll find something like:
After that you have to add
I had no time to test it, but it should be close to the solution
In Kernel/Modules/AgentTicketZoom.pm you'll find something like:
Code: Select all
# do some strips && quoting
KEY:
for my $Key (qw(From To Cc)) {
next KEY if !$Article{$Key};
$Self->{LayoutObject}->Block(
Name => 'RowRecipient',
Data => {
Key => $Key,
Value => $Article{$Key},
Realname => $Article{ $Key . 'Realname' },
},
);
}
Code: Select all
KEY:
for my $Key (qw(Created Subject)) {
next KEY if !$Article{$Key};
$Self->{LayoutObject}->Block(
Name => 'RowData',
Data => {
Key => $Key,
Value => $Article{$Key},
},
);
}
Need a Perl/OTRS developer? You can contact me at info@perl-services.de
Re: Add Header information to AgentTicketZoom
I've tried adding the code but it did not change any of the outputs. Do I need to change anything in the .dtl files?