New "button" on AgentTicketZoom

Moderator: crythias

Post Reply
JohnyGuardian
Znuny newbie
Posts: 8
Joined: 25 Mar 2021, 13:14
Znuny Version: 6.0.12
Real Name: Janko
Company: MicroStep

New "button" on AgentTicketZoom

Post by JohnyGuardian »

Hi!

I am struggling with adding a new button to AgentTicketZoom screen, in the Actions panel, see below panel:
Image

How would I add this button?
For example it can be a copy of AgentTicketFreeText, as AgentTicketFreeText2, but with different settings.

Thanks
JohnyGuardian
Znuny newbie
Posts: 8
Joined: 25 Mar 2021, 13:14
Znuny Version: 6.0.12
Real Name: Janko
Company: MicroStep

Re: New "button" on AgentTicketZoom

Post by JohnyGuardian »

Hi,

is there anybody who can help me with this? Or maybe just point me where to start?

Thanks
skullz
Znuny superhero
Posts: 618
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: New "button" on AgentTicketZoom

Post by skullz »

1. The docs explained here.

- https://doc.znuny.org/doc/manual/develo ... -otrs.html
- https://doc.znuny.org/manual/developer/ ... enu-module

2. May be not specific for your needs..
but..

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<otrs_config version="2.0" init="Application">
	<Setting Name="Ticket::Frontend::MenuModule###212-AgentTicketNewModule" Required="0" Valid="1">
        <Description Translatable="1">Shows the menu module in the ticket zoom view of the agent interface. Additional access control to show or not show this link can be done by using Key "Group" and Content like "rw:group1;move_into:group2". To cluster menu items use for Key "ClusterName" and for the Content any name you want to see in the UI. Use "ClusterPriority" to configure the order of a certain cluster within the toolbar.</Description>
        <Navigation>Frontend::Agent::View::TicketZoom::MenuModule</Navigation>
        <Value>
            <Hash>
                <Item Key="Module">Kernel::Output::HTML::TicketMenu::Generic</Item>
                <Item Key="Name" Translatable="1">New Module</Item>
                <Item Key="Description" Translatable="1">New Module</Item>
                <Item Key="Action">AgentTicketNewModule</Item>
                <Item Key="Link">Action=-AgentTicketNewModule;TicketID=[% Data.TicketID | html %]</Item>
                <Item Key="LinkParam"></Item>
                <Item Key="Target"></Item>
                <Item Key="PopupType">TicketAction</Item>
                <Item Key="ClusterName" Translatable="1"></Item>
                <Item Key="ClusterPriority"></Item>
            </Hash>
        </Value>
    </Setting>
	<Setting Name="Frontend::Module###AgentTicketNewModule" Required="0" Valid="1">
        <Description Translatable="1">Frontend module registration for the agent interface.</Description>
        <Navigation>Frontend::Agent::ModuleRegistration</Navigation>
        <Value>
            <Item ValueType="FrontendRegistration">
                <Hash>
                    <Item Key="Group">
                        <Array>
                        </Array>
                    </Item>
                    <Item Key="GroupRo">
                        <Array>
                        </Array>
                    </Item>
                    <Item Key="Description" Translatable="1">New module.</Item>
                    <Item Key="Title" Translatable="1">New Module</Item>
                    <Item Key="NavBarName">Ticket</Item>
                </Hash>
            </Item>
        </Value>
    </Setting>
</otrs_config>
3. Rebuild config

Code: Select all

otrs > bin/otrs.Console.pl Maint::Config::Rebuild
otrs > bin/otrs.Console.pl Maint::Config::Sync
nm.png
You do not have the required permissions to view the files attached to this post.
wurzel
Znuny guru
Posts: 3224
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: New "button" on AgentTicketZoom

Post by wurzel »

Hi,

maybe a process dialogue would help.

Flo
OTRS 8 SILVER (Prod)
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
Post Reply