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 2023-07-03 15:15:12

Webhead
Member
Registered: 2023-04-13
Posts: 6

Docmentation

Anybody have some info or tutorial on this subject?
The developper information is severly limited and fragmented.

I've been fighting with the example/empty plugins but even adding a simple top menu with['menu_toadd']  is nearly undocumented.
Even if I search the source for this method I'm not much wiser.
Currently I'm not winning this fight.

Offline

#2 2023-07-06 03:03:53

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

Re: Docmentation

Basic plugin development documentation can be found in the regular GLPI developer documentation here:
https://glpi-developer-documentation.re … index.html

The example plugin has some examples of the various hooks although they are often more to show expected values than show actual functionality.

Something you can try since the majority of GLPI plugins are free and open-source is to look at the source code of plugins that do something similar to what you are trying to do.
The "News" plugin is one that uses the "menu_toadd" hook.
https://plugins.glpi-project.org/#/plugin/news

If you would like to contribute to improve the documentation or the example plugin, feel free to open a pull request on the related GitHub projects.
https://github.com/glpi-project/docdev
https://github.com/pluginsGLPI/example


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

Board footer

Powered by FluxBB