Navbar Customization
Moderator: crythias
Navbar Customization
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
Ubuntu Server 16.04 LTS
Apache 2.4.18 / MariaDB 10.0.25
-
- 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
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
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: Navbar Customization
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
Ubuntu Server 16.04 LTS
Apache 2.4.18 / MariaDB 10.0.25
-
- 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
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.
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
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: Navbar Customization
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
Ubuntu Server 16.04 LTS
Apache 2.4.18 / MariaDB 10.0.25
Re: Navbar Customization
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
Ubuntu Server 16.04 LTS
Apache 2.4.18 / MariaDB 10.0.25
-
- 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
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
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: Navbar Customization
I ran otrs.Console.pl Maint::Cache::Delete then Maint::Loader::CacheCleanup and finally CacheGenerate
Apache was restarted as the server was rebooted.
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
Ubuntu Server 16.04 LTS
Apache 2.4.18 / MariaDB 10.0.25