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 2013-05-06 20:58:18

enriquet
Member
Registered: 2012-08-03
Posts: 27

generic object plugin and custom fields

I am using glpi 0.83.4 with php 5.3.3.7

I need to define customer it services (example: datalink with 64 mbps).
I though i could try defining services using the generic object plugin, after all, what i want to do is inventory of objects called services (which i would relate to other object inventoried as well)

So, first question would be what do you thing about the idea? I would appreciate opinions or alternative ways.

Second question, specific to the plugin.
I added object cars as in the documentation, but now i want to add some custom fields.
In   /plugins/genericobject/fields/constants i added a file cars.constant.php


<?php

global $GO_FIELDS, $LANG;


$GO_FIELDS['mytextofield']['colores']= 'color';
$GO_FIELDS['mytextofield']['input_type'] = 'text'


When i try to add this field in fields tab, there is one entry in the combo, which when added shows name in db mytextofield, but the label is not present.

Any tips about what i am doing wrong are very welcome

Thanksss

Last edited by enriquet (2013-05-06 20:59:14)

Offline

Board footer

Powered by FluxBB