kann man relativ einfach auf der Rechten Seite in der Ticketansicht ein eigenes Widget/Bereich erstellen mit Text? Ich möchte hier meine Prio Definition rein schreiben.
Hier ein kleines Bild für alle

https://ibb.co/SXPbQMt
Gruß
Steffen
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<otrs_config version="2.0" init="Config">
<Setting Name="Ticket::Frontend::AgentTicketZoom###Widgets###003-Prios" Required="0" Valid="1">
<Description Translatable="1">AgentTicketZoom widget that shows the prio definition.</Description>
<Navigation>Frontend::Agent::View::TicketZoom</Navigation>
<Value>
<Hash>
<Item Key="Module">Kernel::Output::HTML::TicketZoom::PrioDef</Item>
<Item Key="Location">Sidebar</Item>
<Item Key="Collapsed">0</Item>
<Item Key="Rank">003</Item>
<Item Key="Async">1</Item>
</Hash>
</Value>
</Setting>
</otrs_config>
Code: Select all
# --
# Copyright (C) 2022 Perl-Services.de, https://www.perl-services.de
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --
<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("Priority Definitions") | html %]</h2>
</div>
<div class="Content">
<dl>
<dt>Prio 1</dt>
<dd>Erklärung zu Prio 1</dd>
</dl>
</div>
</div>
Code: Select all
# --
# Copyright (C) 2022 Perl-Services.de, https://www.perl-services.de/
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --
package Kernel::Output::HTML::TicketZoom::PrioDef;
use strict;
use warnings;
our @ObjectDependencies = qw(
Kernel::Output::HTML::Layout
);
sub new {
my ( $Type, %Param ) = @_;
# allocate new hash for object
my $Self = {};
bless( $Self, $Type );
$Self->{UserID} = $Param{UserID};
my $ConfigObject = $Kernel::OM->Get('Kernel::Config');
$Self->{CompareMethod} = $ConfigObject->Get('Attachmentlist::ExcludeMethod') || 'string_match';
return $Self;
}
sub Run {
my ( $Self, %Param ) = @_;
my $LayoutObject = $Kernel::OM->Get('Kernel::Output::HTML::Layout');
my $Snippet = $LayoutObject->Output(
TemplateFile => 'PrioDef',
Data => {},
);
my $Config = $Param{Config};
return {
Output => $Snippet,
Rank => $Config->{Rank},
};
}
1;
Code: Select all
perl bin/otrs.Console.pl Maint::Config::Rebuild