[Solved]How change customers view.

Moderator: crythias

Locked
trzcionek
Znuny newbie
Posts: 18
Joined: 27 Jul 2012, 07:47
Znuny Version: OTRS 3.1
Real Name: Marcin
Company: KHW S.A.

[Solved]How change customers view.

Post by trzcionek »

Hello,
I would like to change the customers view in the agent panel, in such a way to add 2 fields - phone and room.
Is it possible to do? How can I do it?

Sorry for my english.
Last edited by trzcionek on 31 Jul 2012, 09:14, edited 1 time in total.
Sorry for my english I'm still learning
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: How change customers view.

Post by crythias »

OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
trzcionek
Znuny newbie
Posts: 18
Joined: 27 Jul 2012, 07:47
Znuny Version: OTRS 3.1
Real Name: Marcin
Company: KHW S.A.

Re: How change customers view.

Post by trzcionek »

OK .
I have customized database of the additional fields (manual) but I can not find file responsible for displaying the panel: http://0.0.0.0/otrs/index.pl?Action=AdminCustomerUser, Nav = Agent

I have 6 columns on this page:
USERNAME NAME EMAIL CUSTOMERID LAST LOGIN VALIDITY
but I want have:
USERNAME NAME ROOM ORGANIZATION_UNIT LAST LOGIN VALIDITY

In customers properties I have ROOM and ORGANZIAZTION_UNIT.

Sorry for my english.
Sorry for my english I'm still learning
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: How change customers view.

Post by crythias »

hint: it's almost always usually the .dtl file that matches the Action=
Kernel/Output/HTML/Standard/AdminCustomerUser.dtl

Code: Select all

            <div class="Content ">
                <table class="DataTable" id="CustomerTable">
                    <thead>
                        <tr>
                            <th>$Text{"Username"}</th>
                            <th>$Text{"Name"}</th>
                            <th>$Text{"Email"}</th>
                            <th>$Text{"CustomerID"}</th>
                            <th>$Text{"Last Login"}</th>
                            <th>$Text{"Validity"}</th>
                        </tr>
                    </thead>
This is just header. Below is content...

Code: Select all

<!-- dtl:block:OverviewResultRow -->
                        <tr>
<!-- dtl:block:OverviewResultRowLink -->
                            <td><a class="AsBlock" href="$Env{"Baselink"}Action=$Env{"Action"};Subaction=Change;ID=$LQData{"UserLogin"};Search=$LQData{"Search"};Nav=$LQData{"Nav"}">$QData{"UserLogin"}</a></td>
<!-- dtl:block:OverviewResultRowLink -->
<!-- dtl:block:OverviewResultRowLinkNone -->
                            <td><a class="AsBlock" href="#">$QData{"UserLogin"}</a></td>
<!-- dtl:block:OverviewResultRowLinkNone -->
                            <td>$QData{"UserFirstname"} $QData{"UserLastname"}</td>
                            <td>$QData{"UserEmail"}</td>
                            <td>$QData{"UserCustomerID"}</td>
                            <td>$TimeShort{"$QData{"UserLastLoginTimestamp"}"}</td>
                            <td>$Text{"$Data{"Valid"}"}</td>
                        </tr>
<!-- dtl:block:OverviewResultRow -->
Don't forget that if the field is not in the Map of Config.pm, it won't show up here, even if you put the field in here. (Same doc page).
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
trzcionek
Znuny newbie
Posts: 18
Joined: 27 Jul 2012, 07:47
Znuny Version: OTRS 3.1
Real Name: Marcin
Company: KHW S.A.

Re: How change customers view.

Post by trzcionek »

Thanks, it works.
Sorry for my english I'm still learning
Locked