You are not logged in.
Pages: 1
Hi, I have a php page created by me. And I want a link to that page to appear on the menu.
My question is how can I edit the menu to add a new section?
thank you for your time
Offline
Hello,
I had the same necessity and I modified php files to add new menu option al least of standard glpi.
##############################
GLPI 9.1.6 /Ubuntu 16.04.02 LTS
Apache/2.4.18 (Ubuntu) - PHP 7.0.22-0ubuntu0.16.04.1 - MySQL: 5.7.19
Offline
The problem is that I don't have much knowledge about php. Could you tell me what files you've edited? it would help me a lot
Thank you
Offline
Hello XabiNG,
Excuse me for the dealy. I just modified file /glpi/inc/html.class.php aproximately line 2190 when you find self::displayMenuAll($menu); , I add new linees with new menu:
echo "<li id='menu8' onmouseover=\"javascript:menuAff('menu8','menu');\">";
echo "<a class='itemP' href='/front/DesbloqueoSession.php'>Opciones adicionales</a>";
echo "<ul class='ssmenu' style='display: none;'>";
echo "<li><a href='URL' target='_new'>URL ACCESS</a></li>";
echo "<li><a href='/front/DesbloqueoSession.php'>Desbloquear Sesiones</a></li>";
echo "</ul></li>";
In my case I put new menu with 2 options, and URL and new functionality in php two unblock users at ERP system.
##############################
GLPI 9.1.6 /Ubuntu 16.04.02 LTS
Apache/2.4.18 (Ubuntu) - PHP 7.0.22-0ubuntu0.16.04.1 - MySQL: 5.7.19
Offline
Pages: 1