Edit hostlisting
-
Hello,
this is my first topic and my englisch isn’t so good. Sorry for that.I try so find a way, how i can edit the Hostlisting bootstrap table. I will include a new column, exactly the Serial Number column for the Host from the mysql DB. Is that possible?
I’m looking for the hostlisting.php in the www/html/ directory. The Userlisting.php, Printerlisting.php etc. are available. But i can’t find the hostlisting.php… In which file ist the Host bootstrap table for the Hostlisting?
Thank you for your help.
Sebao
-
@sebao Hi and welcome to the forums!
The Userlisting.php, Printerlisting.php etc. are available.
Those files are not used for listing the information in the web UI. So if you want to change the hosts table you want to take a look at the file
/var/www/html/fog/lib/pages/hostmanagementpage.class.php
. On line 165 (version 1.5.8 of FOG, might be a little different for other versions) you find the start of where this table is created. We use three arrays (headerData
,templates
andattributes
) to put together the information which is then rendered to a HTML table in another place in the code. -
Thank you. That was very helpful. I’m still working on it.