You are not logged in.
Pages: 1
Estimados,
Buenos dias.
Queria saber si es posible centrar el contenido de una columna para que no quede de izquierda a derecha.
Por lo que estuve viendo, tengo que modificar el archivo computer.class.php en C:\xampp\htdocs\glpi\inc
Me podrian indicar como hacerlo? Gracias.
------------------------------------------------------------------------------------------------------------------------------------
Dear,
Good morning.
I wanted to know if it is possible to center the content of a column so that it is not left to right.
From what I was seeing, I have to modify the computer.class.php file in C: \ xampp \ htdocs \ glpi \ inc
Could you tell me how to do it? Thank you.
------------------------------------------------------------------------------------------------------------------------------------
Cher,
Bonjour.
Je voulais savoir s'il est possible de centrer le contenu d'une colonne afin qu'elle ne soit pas à droite.
D'après ce que je voyais, je dois modifier le fichier computer.class.php dans C: \ xampp \ htdocs \ glpi \ inc
Pourriez-vous me dire comment le faire? Merci
GLPI 9.1.1 Copyright (C) 2015-2016 Teclib' - Copyright (C) 2003-2015 INDEPNET Development Team
FusionInventory 9.1+1.0 - Copyleft © 2010-2016 by FusionInventory Team
Lucas Lescano
GLPI 9.4.5 + FusionInventory 9.4+1.1
Offline
Hi
in the setup.php of your plugin add this function. Don't forget to replace yourplugin by... the name of your plugin.
// center all columns of plugin
function plugin_yourplugin_displayConfigItem($itemtype, $ID, $data, $num)
{
return "align='center'";
}
See how this function is called in inc/search.class.php, method Search::displayConfigItem()
I think this is what you need.
No support with MP - Always run an upgrade task on a testing instance before running it on production! Always backup before any upgrade task!
Offline
Hi
in the setup.php of your plugin add this function. Don't forget to replace yourplugin by... the name of your plugin.
// center all columns of plugin function plugin_yourplugin_displayConfigItem($itemtype, $ID, $data, $num) { return "align='center'"; }
See how this function is called in inc/search.class.php, method Search::displayConfigItem()
I think this is what you need.
Hello! Thanks for answering.
It is not a plugin.
It is the "Computers" tab within "Inventory".
-----------------------------------------------------------------------------------------------------------------
Salut! Merci pour la réponse.
Ce n'est pas un plugin.
C'est l'onglet "Ordinateurs" dans "Inventaire".
Lucas Lescano
GLPI 9.4.5 + FusionInventory 9.4+1.1
Offline
There is no way to do this with a setting.
Reading the Search::displayConfigItem() method, it appears you may do this with a plugin, by using the snippet I gave to you. This is less intrusive than modifying GLPI, and will not void your warranty
No support with MP - Always run an upgrade task on a testing instance before running it on production! Always backup before any upgrade task!
Offline
Pages: 1