I have a need to add a new menu item on the top bar of the FreePBX login page.
This new menu item does not need to be a pop down but only a button with a hyperlink URL to our Internal IT Support Ticketing system.
I have found we can create a /etc/freepbx_menu.conf file if we want to add new menu items to the top bar but we do not know the proper syntax to add to the freepbx_menu.conf file to make the new menu items also appear on the Login page of FreePBX. Sort of like UCP does.
Also is it possible to make that button have a link to an external URL (http address)?
Can this be done? Is there an easier or better way to do this?
Perhaps advanced settings -> styling and logos is easier, Image and Link to suit. If /var/www/html/index_custom.php exists it will be preferred over the the standard login screen
Thanks for the suggestion.
We are looking into that option also but it seems like much more scope/effort than to just add one menu button on the top bar of the existing login page.
Yes, and custom files you put in /var/www/html/admin won’t be tracked by FreePBX and flagged as modified, which is why I suggested putting your custom file there rather than in the subfolder structure.
I understand. Yeah we did this index_customer.php already just to see if we wanted to go this route.
Also just checking about if we can do the Login Page Menu item too.
cat /var/www/html/index.php
<?php
// License for all code of this FreePBX module can be found in the license file inside the module directory
// Copyright 2013 Schmooze Com Inc.
//
if (file_exists(dirname(__FILE__) . '/index_custom.php')) {
include_once(dirname(__FILE__) . '/index_custom.php');
} else {
$basename = pathinfo($_SERVER['PHP_SELF'],PATHINFO_DIRNAME);
$uri = (!empty($basename) && $basename != '/') ? $basename . '/admin' : '/admin';
header('Location: '.$uri);
}
as it is or you will get bitching , but your custom file can be anything you want