1

Topic: New tab linked with computers

Hello and thanks for all,

How I can create a similar section as 'operation system'? I create a table (glpi_goinit) with 'n' coloms, this table have a ID linked with ID computer. GLPI v 9.1

I modified this files:

computer.class.php
//line 133
->addStandardTab('Goinit', $ong, $options);

//line 1179
      $tab[167]['table']          = 'glpi_goinit';
      $tab[167]['field']          = 'name';
      $tab[167]['name']           = __('Goinit');
      $tab[167]['datatype']       = 'dropdown';

relation.constant.php
//line 250
"glpi_goinit"
                        => array('glpi_computers' => 'goinit_id'),

I create this files
/front/goinit.form.php //same as operationsystem.form.php
/inc/goinit.class.php //same as operationsystem.class.php

That make me missing?

2

Re: New tab linked with computers

Name of the table must always be in plural
Number used in getSearchOptions is already use by computer antivirus
In operatingsystem you have nothing to display tab or its content.

If you want to add a new tab, create a plugin to do that

CentOS 6.5 - PHP 5.6 - PHP 7 - MySQL 5.6  + APC + memcached
GLPI 0.90.5 SVN - GLPI 9.1.3 SVN
Certifiée ITIL (ITV2F, ITILF, ITILOSA)