TicketViewZoom Links

Moderator: crythias

Locked
tnieman
Znuny advanced
Posts: 103
Joined: 14 Nov 2012, 21:59
Znuny Version: 3.1.6
Real Name: Tom Nieman
Company: WorkForce Software

TicketViewZoom Links

Post by tnieman »

We want to modify the links that are at the top of the TicketViewZoom (Back | Unlock | History | Print | Priority | Link | Owner | .......)

We want to remove (or hide) two and add a new one (or maybe just relabel and re-purpose one of the ones we don't want). Also want to reorder the links.

I'm not sure where this configuration needs to be done. Is it in the dtl file for TicketViewZoom?

Tom
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: TicketViewZoom Links

Post by reneeb »

Those links are configured in the SysConfig: Ticket -> Frontend::Agent::Ticket::MenuModule

To "remove" links you have to just disable the appropriate SysConfig option. To add a new one, you have to create a new SysConfig option - or change the settings for a disabled one...

If you want to create a new option, create a file "MyTicketMenu.xml" in <OTRS_HOME>/Kernel/Config/Files:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<otrs_config version="1.0" init="Application">
    <CVS>$Id: Ticket.xml,v 1.534 2012/11/12 09:34:38 mh Exp $</CVS>
    <ConfigItem Name="Ticket::Frontend::MenuModule###004-MyLink" Required="0" Valid="1">
        <Description Translatable="1">My link....</Description>
        <Group>Ticket</Group>
        <SubGroup>Frontend::Agent::Ticket::MenuModule</SubGroup>
        <Setting>
            <Hash>
                <Item Key="Module">Kernel::Output::HTML::TicketMenuGeneric</Item>
                <Item Key="Name">MyLink</Item>
                <Item Key="Description" Translatable="1">My Menu Link</Item>
                <Item Key="Action">MyAction</Item>
                <Item Key="Link">$Env{"LastScreenOverview"};TicketID=$QData{"TicketID"}</Item>
                <Item Key="Target"></Item>
                <Item Key="PopupType"></Item>
            </Hash>
        </Setting>
    </ConfigItem>
</otrs_config>
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: TicketViewZoom Links

Post by crythias »

Or apply appropriate groups and group memberships to the entries in SysConfig Module Registration.
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
tnieman
Znuny advanced
Posts: 103
Joined: 14 Nov 2012, 21:59
Znuny Version: 3.1.6
Real Name: Tom Nieman
Company: WorkForce Software

Re: TicketViewZoom Links

Post by tnieman »

Thanks everyone! :D I'll see if I can find time to try this today. Too many meetings. :(
tnieman
Znuny advanced
Posts: 103
Joined: 14 Nov 2012, 21:59
Znuny Version: 3.1.6
Real Name: Tom Nieman
Company: WorkForce Software

Re: TicketViewZoom Links

Post by tnieman »

I hijacked the Priorty link and got it working. Next question is how do I change the order of the links on the page?

Tom
tnieman
Znuny advanced
Posts: 103
Joined: 14 Nov 2012, 21:59
Znuny Version: 3.1.6
Real Name: Tom Nieman
Company: WorkForce Software

Re: TicketViewZoom Links

Post by tnieman »

Another question is what is AgentTicketMenuPre for?
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: TicketViewZoom Links

Post by reneeb »

The ordering is done with the numbers after the "###" in the config item name...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
tnieman
Znuny advanced
Posts: 103
Joined: 14 Nov 2012, 21:59
Znuny Version: 3.1.6
Real Name: Tom Nieman
Company: WorkForce Software

Re: TicketViewZoom Links

Post by tnieman »

thanks again
Locked