You are not logged in.
Hello,
Do you know if it is possible or if there is a way to add an icon on a generic object as for the Computers menu for example ?
Thanks for help.
Offline
Hello,
Recently I came across the same problem and I opted to use the comment field of the generic object to define the menu icon. For that, I needed to change the object.class.php file, as shown in the image below.
The result achieved can be seen in the image below.
Offline
Hello rafapraz.
I can't see your images. How did you change object.class.php?
Thanks!
Offline
Hi, i'm trying to do the same thing (add icon to custom generic object).
$menu[$str_name]['icon'] = ($type['comment'] == '') ? $type['itemtype']::getIcon() : $type['comment'];
&&
'icon' => ($type['comment'] == '') ? $type['itemtype']::getIcon() : $type['comment'],
Did try to add code from your screenshot changing object.class.php, but how to specify where is the .svg icon for getIcon ?
Last edited by Totem974 (2023-06-19 09:28:18)
Offline
Hello Rafa, I'm Brazilian too, I would like to know in detail how you added the space in the name of the item and how you added the icon, please.
Olá rafa, sou brasileiro também, gostaria de saber em detalhes como voce adicionou o espaço no nome do item e como adicionou o ícone por gentileza.
Offline