How can I Hide some Fields in the AgentTicketZoom?

English! place to talk about development, programming and coding
Post Reply
DerItist
Znuny newbie
Posts: 2
Joined: 06 Feb 2015, 16:07
Znuny Version: 4.0.5

How can I Hide some Fields in the AgentTicketZoom?

Post by DerItist »

Hello,

i want to hide some Fields in the AgentTicketZoom section.

a quick look at AgentTicketZoom.tt shows:


Code: Select all

[% RenderBlockStart("CustomerTable") %]
            <div class="WidgetSimple">
                <div class="Header">
                    <div class="WidgetAction Toggle">
                        <a href="#" title="[% Translate("Show or hide the content") | html %]"><i class="fa fa-caret-right"></i><i class="fa fa-caret-down"></i></a>
                    </div>
                    <h2>[% Translate("Customer Information") | html %]</h2>
                </div>
                <div class="Content">
			  [% Data.CustomerTable %]</div>
            </div>

Is it possible to get access to a single field of Data.CustomerTable?
Or is this one closed structure?

In other languages you can use

Code: Select all

Data.CustomerTable[1]  or Data.CustomerTable.[Fieldname]

Thanks in advance


I am using OTRS 4


Greetz

Oliver
Andrian
Znuny newbie
Posts: 3
Joined: 16 Mar 2016, 10:53
Znuny Version: OTRS 4

Re: How can I Hide some Fields in the AgentTicketZoom?

Post by Andrian »

Did you try?
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: How can I Hide some Fields in the AgentTicketZoom?

Post by reneeb »

In Data.CustomerTable is the full HTML for the customer information. If you want to hide some information from the table, you can change the mapping in your Kernel/Config.pm. For example in https://github.com/OTRS/otrs/blob/maste ... s.pm#L1492 the column after the column name ('title') is a flag if the value should be shown in the frontend. Change that flag from 1 to 0 to hide it...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Post Reply