Hi,
how can i prevent the customerId (email address) from being cut in the preview?
Is it possible to show the customers name + email address in the ticket view? right now its only displaying the username. Which is quite annoying because we have to copy the email address to another tool, and we have to klick now on reply in order to get the plain email address from the ticket.
In OTRS 2.xx external/outgoing emails and notes were marked by colors, now only by some symbols ... is it possible to change this back to color markings?
customerID gets cut and some other questions.
Moderator: crythias
customerID gets cut and some other questions.
You do not have the required permissions to view the files attached to this post.
OTRS 3.0.5
-
- Znuny newbie
- Posts: 10
- Joined: 21 Jun 2011, 18:32
- Znuny Version: 3.0.8
- Real Name: Varga Viktor
- Company: Netlock
[SOLVED] add colors to direction types
Now the whole solution:
(You can do these in the IE7.css too, but we dont use it, and i am lazy.)
Look for span.Direction.Incomming in the Core.Table.css:
Modify to the followings: (this adds backgorund color to the small gifs, light grey to customer event (better than white), red for internal notes, green for outgoing, and add a new OutgoingAuto type, with the same picture as Outgoind, but yellow background. (This
If you modify only this auto replies are still green.
----
.TableSmall tbody td span.Direction.Incoming {
background: #d0d0d0 url(../img/direction_incoming.png) no-repeat center;
}
.TableSmall tbody td span.Direction.Outgoing {
background: #00ff00 url(../img/direction_outgoing.png) no-repeat center;
}
.TableSmall tbody td span.Direction.OutgoingAuto {
background: #ffff00 url(../img/direction_outgoing.png) no-repeat center;
}
.TableSmall tbody td span.Direction.Internal {
background: #ff0000 url(../img/direction_internal.png) no-repeat center;
}
----
To have difference between autoreply and agent reply you should edit two another files:
1. AgentTicketZoom.dtl
Look for these, the new tree item which was added here is the OutgoingAuto.dtl block. Copy it into your file.
----
<!-- dtl:block:TreeItemDirectionIncoming -->
<span class="Direction Incoming" title="$Text{"Incoming message"}"></span>
<input type="hidden" class="SortData" value="0" />
<!-- dtl:block:TreeItemDirectionIncoming -->
<!-- dtl:block:TreeItemDirectionOutgoing -->
<span class="Direction Outgoing" title="$Text{"Outgoing message"}"></span>
<input type="hidden" class="SortData" value="1" />
<!-- dtl:block:TreeItemDirectionOutgoing -->
<!-- dtl:block:TreeItemDirectionOutgoingAuto -->
<span class="Direction OutgoingAuto" title="$Text{"Outgoing autoreply"}"></span>
<input type="hidden" class="SortData" value="1" />
<!-- dtl:block:TreeItemDirectionOutgoingAuto -->
<!-- dtl:block:TreeItemDirectionInternal -->
<span class="Direction Internal" title="$Text{"Internal message"}"></span>
<input type="hidden" class="SortData" value="2" />
<!-- dtl:block:TreeItemDirectionInternal -->
----
Now you have the color in the css, and the block type in the dtl.
We should add the code for this:
2. AgentTicketZoom.pm
Look for the following and modify to this.
This code now sets the block type to the OutgoingAuto, if not internal, and source is the system.
----
# Determine communication direction
if ( $Article{ArticleType} =~ /-internal$/smx ) {
$Self->{LayoutObject}->Block( Name => 'TreeItemDirectionInternal' );
}
else {
if ( $Article{SenderType} eq 'customer' ) {
$Self->{LayoutObject}->Block( Name => 'TreeItemDirectionIncoming' );
}
else {
if ( $Article{SenderType} eq 'system' ) {
$Self->{LayoutObject}->Block( Name => 'TreeItemDirectionOutgoingAuto' );
}
else {
$Self->{LayoutObject}->Block( Name => 'TreeItemDirectionOutgoing' );
}
}
}
----
run the otrs.Rebuildconfig.pl to create the new packed css files, then check the tickets. Now you have colors like in the 2.4.x
(You can do these in the IE7.css too, but we dont use it, and i am lazy.)
Look for span.Direction.Incomming in the Core.Table.css:
Modify to the followings: (this adds backgorund color to the small gifs, light grey to customer event (better than white), red for internal notes, green for outgoing, and add a new OutgoingAuto type, with the same picture as Outgoind, but yellow background. (This
If you modify only this auto replies are still green.
----
.TableSmall tbody td span.Direction.Incoming {
background: #d0d0d0 url(../img/direction_incoming.png) no-repeat center;
}
.TableSmall tbody td span.Direction.Outgoing {
background: #00ff00 url(../img/direction_outgoing.png) no-repeat center;
}
.TableSmall tbody td span.Direction.OutgoingAuto {
background: #ffff00 url(../img/direction_outgoing.png) no-repeat center;
}
.TableSmall tbody td span.Direction.Internal {
background: #ff0000 url(../img/direction_internal.png) no-repeat center;
}
----
To have difference between autoreply and agent reply you should edit two another files:
1. AgentTicketZoom.dtl
Look for these, the new tree item which was added here is the OutgoingAuto.dtl block. Copy it into your file.
----
<!-- dtl:block:TreeItemDirectionIncoming -->
<span class="Direction Incoming" title="$Text{"Incoming message"}"></span>
<input type="hidden" class="SortData" value="0" />
<!-- dtl:block:TreeItemDirectionIncoming -->
<!-- dtl:block:TreeItemDirectionOutgoing -->
<span class="Direction Outgoing" title="$Text{"Outgoing message"}"></span>
<input type="hidden" class="SortData" value="1" />
<!-- dtl:block:TreeItemDirectionOutgoing -->
<!-- dtl:block:TreeItemDirectionOutgoingAuto -->
<span class="Direction OutgoingAuto" title="$Text{"Outgoing autoreply"}"></span>
<input type="hidden" class="SortData" value="1" />
<!-- dtl:block:TreeItemDirectionOutgoingAuto -->
<!-- dtl:block:TreeItemDirectionInternal -->
<span class="Direction Internal" title="$Text{"Internal message"}"></span>
<input type="hidden" class="SortData" value="2" />
<!-- dtl:block:TreeItemDirectionInternal -->
----
Now you have the color in the css, and the block type in the dtl.
We should add the code for this:
2. AgentTicketZoom.pm
Look for the following and modify to this.
This code now sets the block type to the OutgoingAuto, if not internal, and source is the system.
----
# Determine communication direction
if ( $Article{ArticleType} =~ /-internal$/smx ) {
$Self->{LayoutObject}->Block( Name => 'TreeItemDirectionInternal' );
}
else {
if ( $Article{SenderType} eq 'customer' ) {
$Self->{LayoutObject}->Block( Name => 'TreeItemDirectionIncoming' );
}
else {
if ( $Article{SenderType} eq 'system' ) {
$Self->{LayoutObject}->Block( Name => 'TreeItemDirectionOutgoingAuto' );
}
else {
$Self->{LayoutObject}->Block( Name => 'TreeItemDirectionOutgoing' );
}
}
}
----
run the otrs.Rebuildconfig.pl to create the new packed css files, then check the tickets. Now you have colors like in the 2.4.x