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 2024-07-03 12:08:53

Mamo
Member
From: Czech republic
Registered: 2023-05-15
Posts: 25

Change upper bar

Hello.

Is it possible to change (or add) links in upper bar GLPI in simplified interface (meaning Home, Create a ticket, Forms, Tickets)?

Offline

#2 2024-07-03 12:55:32

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

Re: Change upper bar

In GLPI itself, no. With a custom plugin though, yes.
Making a plugin would require basic PHP knowledge and referring to the GLPI developer documentation. Or, looking for a plugin that already makes changes to the menu and using it as a reference since most GLPI plugins are open-source.
https://glpi-developer-documentation.re … index.html

For example, I made this plugin for GLPI 9.5 when the default menu links for Assets and Assistance were changed to point to the dashboards instead of to Computers and Tickets respectively. You can use it as a starting point along with reading the documentation for the various plugin hooks in the developer documentation.
https://github.com/cconard96/glpimenufix

The menu structure for the simplified interface is a little different, but the same "redefine_menus" hook is used. Instead of having two levels of menu items, it is a single level like:
[
    'create_ticket' => [title, icon, page, links properties here],
    'tickets' => [title, icon, page, links properties here]
]


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

#3 2024-07-04 21:59:32

Mamo
Member
From: Czech republic
Registered: 2023-05-15
Posts: 25

Re: Change upper bar

Thanks for the reply.

I searched and read...

Could you please write one example of value assignment example for the standard and one for the simplified interface? I need to compare it.

Offline

Board footer

Powered by FluxBB