Hello all,
I would like to modify Inventory \ Hosts page's layout. I want to display different fields in this page, and after a little search found the hostinventories.php file.
But PHP is far from me and dont know how to change the displayed fields.
I found this piece of code and tried to change some fields (e.g. instead of 'type' field, put 'Location Latitude' but it didnt worked.
Anybody can help me to change the view of this page, please ?
Thank you.
Mehmet
I would like to modify Inventory \ Hosts page's layout. I want to display different fields in this page, and after a little search found the hostinventories.php file.
But PHP is far from me and dont know how to change the displayed fields.
I found this piece of code and tried to change some fields (e.g. instead of 'type' field, put 'Location Latitude' but it didnt worked.
PHP Code:
if ($data['pageFilter']->groupsSelected) {
// which inventory fields we will need for displaying
$requiredInventoryFields = [
'name',
'type',
'os',
'serialno_a',
'tag',
'macaddress_a'
];
Thank you.
Mehmet
the solution is as follows.
Comment