You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2022-08-08 14:10:57

clu91
Member
Registered: 2022-08-08
Posts: 18

GLPI 10.0.2 Customize Menu

Hello fellas,

im entirely new to GLPI and fairly impressed by the amount of options that the system is offering. For our usecase we do not need all menu entries and i would like to reorganize them a little bit or even deactivate some of them. Is it possible to customize the menu? I googled and couldn't find anything usefull.

Hope someone can help.

best regards Clu

Offline

#2 2022-08-08 14:53:20

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,287

Re: GLPI 10.0.2 Customize Menu

menu is profile dependant :

depending on your rights ( asset management, tickets, projetcs, tools,  setup...) menu will display or not.


Trouver la panne avant de réparer...
GLPI10.0.16 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.3 reports 1.16.0 formcreator 2.13.9, datainjection 2.13.5 fields 1.21.9

Offline

#3 2022-08-08 15:56:52

clu91
Member
Registered: 2022-08-08
Posts: 18

Re: GLPI 10.0.2 Customize Menu

Yes, but im talking about the submenu. Lets say i dont want to have the entry Assets > Printer. I also would like to rearrange some entries in another menu.

Offline

#4 2022-08-08 16:29:04

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,287

Re: GLPI 10.0.2 Customize Menu

clu91 wrote:

Lets say i dont want to have the entry Assets > Printer.

uncheck all actions (read, update, delete, see notes ....)  in administration> profile>[myProfile]>Assets tab>printer


Trouver la panne avant de réparer...
GLPI10.0.16 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.3 reports 1.16.0 formcreator 2.13.9, datainjection 2.13.5 fields 1.21.9

Offline

#5 2022-08-10 09:14:45

clu91
Member
Registered: 2022-08-08
Posts: 18

Re: GLPI 10.0.2 Customize Menu

Okay, thank you that worked for me to clean up a little bit smile

Offline

#6 2022-08-11 08:44:54

vkpm
Member
Registered: 2022-07-29
Posts: 3

Re: GLPI 10.0.2 Customize Menu

Helo ! To remove Items in menu items for all users- go to /src/html.php    find -  'types' => array_merge . here you can see all menu items and you can remove items. ( Take backup)

Offline

#7 2023-03-23 15:52:44

kaczy
Member
Registered: 2023-03-23
Posts: 4

Re: GLPI 10.0.2 Customize Menu

vkpm wrote:

Helo ! To remove Items in menu items for all users- go to /src/html.php    find -  'types' => array_merge . here you can see all menu items and you can remove items. ( Take backup)

Thank you so much for your help! i was looking for this for a few hours

Offline

#8 2023-11-08 10:53:01

zekaleka
Member
Registered: 2023-09-14
Posts: 29

Re: GLPI 10.0.2 Customize Menu

vkpm wrote:

Helo ! To remove Items in menu items for all users- go to /src/html.php    find -  'types' => array_merge . here you can see all menu items and you can remove items. ( Take backup)

In 10.0.10 when i delete entry for example 'Cables' , nothing changes....

        $menu = [
            'assets' => [
                'title' => _n('Asset', 'Assets', Session::getPluralNumber()),
                'types' => array_merge([
                    'Computer', 'Monitor', 'Software',
                    'NetworkEquipment', 'Peripheral', 'Printer',
                    'CartridgeItem', 'ConsumableItem', 'Phone',
                    'Rack', 'Enclosure', 'PDU', 'PassiveDCEquipment', 'Unmanaged'[b], 'Cables'[/b]
                ], $CFG_GLPI['devices_in_menu']),

Offline

#9 2023-11-08 11:30:29

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,287

Re: GLPI 10.0.2 Customize Menu

Don't fork Glpi when you can do it using profiles :

go to :

administration>profiles>[myprofile]>Management (tab)> 
unset all checkboxes on the "cable"  line


Trouver la panne avant de réparer...
GLPI10.0.16 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.3 reports 1.16.0 formcreator 2.13.9, datainjection 2.13.5 fields 1.21.9

Offline

#10 2023-11-28 15:40:53

zekaleka
Member
Registered: 2023-09-14
Posts: 29

Re: GLPI 10.0.2 Customize Menu

Hi,
But how can I add dropdown-> locations to main menu? So that user don't need to go through Setup->Dropdowns->Locations.
Is it possible to add custom link in main menu ? If so, i can't find it.

Offline

#11 2023-11-28 17:10:38

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,813
Website

Re: GLPI 10.0.2 Customize Menu

No. Not without a custom plugin that makes use of the `redefine_menus` hook.
The most basic implementation can be found in this plugin which changed, in GLPI 9.5, the default menu links for assets and assistance, and added the dashboard links to the menus.
https://github.com/cconard96/glpimenufix


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

#12 2023-11-29 10:26:54

zekaleka
Member
Registered: 2023-09-14
Posts: 29

Re: GLPI 10.0.2 Customize Menu

cconard96 wrote:

No. Not without a custom plugin that makes use of the `redefine_menus` hook.
The most basic implementation can be found in this plugin which changed, in GLPI 9.5, the default menu links for assets and assistance, and added the dashboard links to the menus.
github.com/cconard96/glpimenufix

Thanks for answer!

If anybody have solution or suggestion how to add Locations to main menu so that users can see specific information about location, please let us know! smile

Offline

Board footer

Powered by FluxBB