You are not logged in.
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
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