I originally started the below thread but realized I was working on the wrong thing so I've created a new thread.
I've put together a simple module to add a new menu item to my Zabbix 5.2 install. My problem is I can't figure out how to get it to open a URL in a new window. I found a feature called setURL but couldn't get that to work right. Does anyone know how to make a menu item open into a new window? See code below
public function init(): void {
// Initialize main menu (CMenu class instance).
APP::Component()->get('menu.main')
->insertAfter(_('Administration'),((new \CMenuItem(_('Outage Contacts')))
->setAction('myserver.com/OutageContacts.html'))
);
}
Zabbix Manual I'm Using For This
I've put together a simple module to add a new menu item to my Zabbix 5.2 install. My problem is I can't figure out how to get it to open a URL in a new window. I found a feature called setURL but couldn't get that to work right. Does anyone know how to make a menu item open into a new window? See code below
public function init(): void {
// Initialize main menu (CMenu class instance).
APP::Component()->get('menu.main')
->insertAfter(_('Administration'),((new \CMenuItem(_('Outage Contacts')))
->setAction('myserver.com/OutageContacts.html'))
);
}
Zabbix Manual I'm Using For This