You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2016-10-04 10:18:51

rmarsal
Guest
Registered: 2016-10-04
Posts: 1

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?

Offline

#2 2016-10-04 19:28:19

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 13,049

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)

Offline

Board footer

Powered by FluxBB