Add Header information to AgentTicketZoom

Moderator: crythias

Post Reply
nuetron
Znuny newbie
Posts: 2
Joined: 10 Oct 2011, 00:57
Znuny Version: 3.0

Add Header information to AgentTicketZoom

Post by nuetron »

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.
renee
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

Post by renee »

It's quite simple:

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' },
            },
        );
    }
After that you have to add

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},
            },
        );
    }
I had no time to test it, but it should be close to the solution ;-)
Need a Perl/OTRS developer? You can contact me at info@perl-services.de
nuetron
Znuny newbie
Posts: 2
Joined: 10 Oct 2011, 00:57
Znuny Version: 3.0

Re: Add Header information to AgentTicketZoom

Post by nuetron »

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?
Post Reply