Add ticket menumodule item with external link

Moderator: crythias

Locked
brandner
Znuny newbie
Posts: 10
Joined: 13 Oct 2015, 20:14
Znuny Version: 5.0.9
Real Name: Tony Brandner

Add ticket menumodule item with external link

Post by brandner »

Followed the instructions here:
https://otrs.github.io/doc/manual/devel ... enu-module

Adjusted the Sysconfig for my new menu item:
"Edit Config Settings in Ticket -> Frontend::Agent::Ticket::MenuModule"

How do I make the menu item point to an external link?
I have the Link value set to http://example.com, but it still prepends our OTRS URL.

Does anyone know how to accomplish this, or know where I can find more documentation about the Ticket:MenuModule options (Link, LinkOptions, Target, etc)?

Tony
brandner
Znuny newbie
Posts: 10
Joined: 13 Oct 2015, 20:14
Znuny Version: 5.0.9
Real Name: Tony Brandner

Re: Add ticket menumodule item with external link

Post by brandner »

Managed to get close, a bit cumbersome.

I'm using the LinkParam value to run JavaScript to adjust the URL, setting it to a value like:

Code: Select all

onclick="this.href='http://example.com'; return true;"
One issue with this solution is that there is no good way to pass a parameter, such as TicketID.

If I set the Link to a value like:

Code: Select all

myTicketID=[% Data.TicketID | html %]
Then I can use more advanced Javascript to pull it from the resulting href. Not very clean.
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: Add ticket menumodule item with external link

Post by reneeb »

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
kw3v865
Znuny newbie
Posts: 2
Joined: 17 Mar 2016, 10:46
Znuny Version: 5.0.6
Real Name: Nagy Laci
Company: Bazdmeg Kft.

Re: Add ticket menumodule item with external link

Post by kw3v865 »

Dear reneeb!

I also want to add ticket menu module item with external link. I installed this addon successfully: http://opar.perl-services.de/dist/ToolB ... Link-5.0.1

Unfortunately, I don't see this link on the ticket menu. In addition to this, I didn't find it in the sysconfig. I use OTRS version 5.0.6.

Can you help me?

Thank you!
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: Add ticket menumodule item with external link

Post by reneeb »

To configure the external link a new group was added to SysConfig. That group is called "TicketMenuExternalLink". In the Subgroup "TicketLink" you'll see what you need to configure...
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
kw3v865
Znuny newbie
Posts: 2
Joined: 17 Mar 2016, 10:46
Znuny Version: 5.0.6
Real Name: Nagy Laci
Company: Bazdmeg Kft.

Re: Add ticket menumodule item with external link

Post by kw3v865 »

reneeb wrote:To configure the external link a new group was added to SysConfig. That group is called "TicketMenuExternalLink". In the Subgroup "TicketLink" you'll see what you need to configure...
I didn't find group called "TicketMenuExternalLink' in the SysConfig.
redgodzilla
Znuny newbie
Posts: 9
Joined: 22 Apr 2016, 08:10
Znuny Version: OTRS 5.0.9
Real Name: Nikolay

Re: Add ticket menumodule item with external link

Post by redgodzilla »

I use OTRS 5.0.9 install this addon and it doesn't work...
I enable Frontend::ToolBarModule###4-ExternalURL but icon doesn't display...
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: Add ticket menumodule item with external link

Post by reneeb »

kw3v865 wrote:
reneeb wrote:To configure the external link a new group was added to SysConfig. That group is called "TicketMenuExternalLink". In the Subgroup "TicketLink" you'll see what you need to configure...
I didn't find group called "TicketMenuExternalLink' in the SysConfig.
Then check if there are any messages for the addon in the package manager... Are there any messages in the log files?
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
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: Add ticket menumodule item with external link

Post by reneeb »

redgodzilla wrote:I use OTRS 5.0.9 install this addon and it doesn't work...
I enable Frontend::ToolBarModule###4-ExternalURL but icon doesn't display...
That's a different module. It seems that this version of the addon has a bug. I will look at it today...
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
Locked