Change the layout of the ticket zoom customer information sidebar

Moderator: crythias

Locked
sgshp
Znuny newbie
Posts: 8
Joined: 24 Sep 2019, 17:10
Znuny Version: 6.0.5
Real Name: Heiko
Company: SGS Griep Meerwinck GmbH

Change the layout of the ticket zoom customer information sidebar

Post by sgshp »

Hello,

we are currently trying to modify the layout of the customer information sidebar that you can see when you are viewing a ticket. We have successfully added new fields via the Kernel/Config.pm and we were also able to increase the width of the sidebar by changing the width value inside the var/httpd/htdocs/skins/Agent/default/css/Core.PageLayout.css. We changed the width of ".LayoutFixedSidebar.SidebarLast > .SidebarColumn" as well as ".LayoutFixedSidebar.SidebarFirst > .SidebarColumn".
Now the sidebar is wider which is great and it does work for the ticket information, but the customer information widget does not seem to adjust correctly. The text is still behaving as if the widget had the original width.
So my first question would be: What and where do we need to change some things to make the customer information text adjust to the new width?

The second question would to be how to change the order of the customer information fields. Our current order in the widget is:

first name, last name, user name, e-mail, comment, customer, ...

We would like to have the customer field first and and then the other fields. Where can we change the order?

I'll add a screenshot so that it is a bit more clear what I'm talking about.
Image

Any help would be appreciated!
zzz
Znuny superhero
Posts: 914
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: Change the layout of the ticket zoom customer information sidebar

Post by zzz »

Hello Heiko,
sgshp wrote: 25 Sep 2019, 09:14 So my first question would be: What and where do we need to change some things to make the customer information text adjust to the new width?
Try this one: https://github.com/OTRS/otrs/blob/rel-6 ... m.css#L803
sgshp wrote: 25 Sep 2019, 09:14 The second question would to be how to change the order of the customer information fields. Our current order in the widget is:
This subroutine creates the table https://github.com/OTRS/otrs/blob/rel-6 ... ket.pm#L33
Without taking a deeper look into the code, it looks like you have to make some Perl changes to the file.

Best regards
Emin
Professional Znuny and OTRS services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
sgshp
Znuny newbie
Posts: 8
Joined: 24 Sep 2019, 17:10
Znuny Version: 6.0.5
Real Name: Heiko
Company: SGS Griep Meerwinck GmbH

Re: Change the layout of the ticket zoom customer information sidebar

Post by sgshp »

It worked. Now the customer information uses the whole space.

We did not manage to change the order just yet but this was the least important part for us so it is okay for now.
Locked