Navbar Customization

Moderator: crythias

Locked
andyt
Znuny newbie
Posts: 24
Joined: 06 Jan 2015, 13:30
Znuny Version: 5.0.11

Navbar Customization

Post by andyt »

I wondered is there an easy way to add new links to the navbar, I can add them into the AgentNavigationBar.tt file but am firstly concerned that the changes will be wiped out by an upgrade and secondly wondered if there was a way to control the visibility of the links by group membership?
OTRS 5.0.11
Ubuntu Server 16.04 LTS
Apache 2.4.18 / MariaDB 10.0.25
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: Navbar Customization

Post by reneeb »

You can create new Items with new SysConfig options. Search in Kernel/Config/Files/Ticket.xml for Frontend::Module... There you'll find several items with a <NavBar> tag
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
andyt
Znuny newbie
Posts: 24
Joined: 06 Jan 2015, 13:30
Znuny Version: 5.0.11

Re: Navbar Customization

Post by andyt »

Will additions to that file be removed by an upgrade, also how would I restrict access using groups?
OTRS 5.0.11
Ubuntu Server 16.04 LTS
Apache 2.4.18 / MariaDB 10.0.25
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: Navbar Customization

Post by reneeb »

You should create a Kernel/Config/Files/AndyT.xml (or any other convinient name) so that you can just copy that file to the upgraded installation.

Each frontend module has <Group> settings to define which agents can see what menu items.
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
andyt
Znuny newbie
Posts: 24
Joined: 06 Jan 2015, 13:30
Znuny Version: 5.0.11

Re: Navbar Customization

Post by andyt »

Cool, thanks... that's seems easy enough to setup the menu items - managed to get one showing. How would I apply a URL to the link rather than an action, it keeps adding http://url/index.pl? to the link
OTRS 5.0.11
Ubuntu Server 16.04 LTS
Apache 2.4.18 / MariaDB 10.0.25
andyt
Znuny newbie
Posts: 24
Joined: 06 Jan 2015, 13:30
Znuny Version: 5.0.11

Re: Navbar Customization

Post by andyt »

Ok, ran into a bit of an issue - my custom module has been removed, the cache rebuilt but it's still there... any ideas on where it would be hanging around?
OTRS 5.0.11
Ubuntu Server 16.04 LTS
Apache 2.4.18 / MariaDB 10.0.25
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: Navbar Customization

Post by reneeb »

Which cache did you delete LoaderCache or normal cache? Did you restart Apache?
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
andyt
Znuny newbie
Posts: 24
Joined: 06 Jan 2015, 13:30
Znuny Version: 5.0.11

Re: Navbar Customization

Post by andyt »

I ran otrs.Console.pl Maint::Cache::Delete then Maint::Loader::CacheCleanup and finally CacheGenerate

Apache was restarted as the server was rebooted.
OTRS 5.0.11
Ubuntu Server 16.04 LTS
Apache 2.4.18 / MariaDB 10.0.25
Locked