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 2011-01-06 18:30:48

dungtran0719
Member
Registered: 2010-06-14
Posts: 15

Change GLPI String in Browser title

Hi everyone,

I'm new to this forum. I'm using GLPI 0.78 and want to change the GLPI - Authentication string on user browser title. I've edited the title GLPI - in inc\display.function.php that worked for all page except the login page, anyone experience this please help.

Thanks.

Offline

#2 2011-01-11 03:15:15

abdon
Member
Registered: 2010-08-23
Posts: 101

Re: Change GLPI String in Browser title

Are you talking about the very top of the browser, where is says something like "GLPI - Authentication - [browser name here]"?

If so part of it is under en_GB.php. The variable $lang['login'][10] equals 'Authentication'. The "GLPI - " bit is hard coded on index.php.

Offline

#3 2011-01-11 09:12:54

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Change GLPI String in Browser title

If it is hardcoded, you have just to dit the file.
But we do not do an update to delete the GLPI name of the index page.


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#4 2011-01-11 09:38:12

dungtran0719
Member
Registered: 2010-06-14
Posts: 15

Re: Change GLPI String in Browser title

Thanks for your reply, I've found the place to adjust it from "GLPI - Authentication - Browser title"  to "WhatIneed - Authentication - Browser title"

Just seek for

echo '<head><title>GLPI - '.$LANG['login'][10].'</title>'."\n";

in index.php and change the GLPI to what you want!

IT's working now! thanks a lot!

Offline

#5 2013-02-26 12:02:40

davideso
Member
Registered: 2013-01-24
Posts: 14

Re: Change GLPI String in Browser title

Hi, and sorry for posting in such an old thread.

In GLPI 0.83.6 which file do you need to adjust to change the title of all the other pages? I've already fixed the hardcoded title in the index.php, but I don't find the file for all the other pages, there is no display.function.php file.

Offline

#6 2013-03-07 15:06:51

leoeuden
Member
From: UK
Registered: 2013-03-07
Posts: 2

Re: Change GLPI String in Browser title

Hi There,

I can help you with this,

It would appear that the elusive value exists within the following file: html.class.php

On line 774 exists the

echo "\n<html><head><title>GLPI - ".$title."</title>";

Hope this helps,

Offline

#7 2013-06-06 23:55:39

elperico8
Member
Registered: 2009-08-22
Posts: 9

Re: Change GLPI String in Browser title

I'm searching for exactly the same as davideso in GLPI version 0.80.7. I cannot find where's the "GLPI - " title for all the other pages.
As I read here, i changed in index.html but it only changed the Authentication page title.

Thanks!

Offline

#8 2017-02-23 00:45:51

heyalekcs
Member
Registered: 2012-05-03
Posts: 1

Re: Change GLPI String in Browser title

Change tittle bar GLPI

html.class.php  Line 1109

In GLPI 9.1
.

Offline

#9 2018-08-04 01:44:07

auceda
Member
Registered: 2018-08-04
Posts: 1

Re: Change GLPI String in Browser title

Hi, Make this change on inc/html.class.php line 1155 in GLPI 9.3.1. For example i've changed GLPI to HD

echo "<head><title>HD - ".$title."</title>";

Offline

#10 2019-12-11 19:43:38

lesley
Member
Registered: 2019-10-31
Posts: 2

Re: Change GLPI String in Browser title

Para os conterrâneos do Brasil:
Como alterar o título da aba no GLPI

Comandos para alterar o Título da aba - GLPI

Editar o arquivo "/var/www/html/glpi/inc/html.class.php" conforme abaixo:

// Start the page
echo "<!DOCTYPE html>\n";
echo "<html lang=\"{$CFG_GLPI["languages"][$_SESSION['glpilanguage']][3]}\">";
echo "<head><title> TITULO_DESEJADO - ".$title."</title>";
echo "<meta charset=\"utf-8\">";

Last edited by lesley (2019-12-11 19:44:02)

Offline

#11 2023-02-21 02:57:53

itskaku
Member
Registered: 2023-02-21
Posts: 1

Re: Change GLPI String in Browser title

Hi ALL
Please help to change GLPI string name in browser title
That is Setup - GLPI in browser title i want to change GLPI in the Title
like Setup - (MY NAME)
I am using glpi 10.6 version so can'nt able to find common.php or html.class.php

Offline

#12 2023-03-15 18:18:47

SylvieC
Member
Registered: 2023-01-25
Posts: 2

Re: Change GLPI String in Browser title

Hi,

GLPI 10 is using twig template.
To change the default " - GLPI" string in the browser title, yo have to modify the file /templates/layout/parts/head.html.twig


itskaku wrote:

Hi ALL
Please help to change GLPI string name in browser title
That is Setup - GLPI in browser title i want to change GLPI in the Title
like Setup - (MY NAME)
I am using glpi 10.6 version so can'nt able to find common.php or html.class.php

Offline

#13 2023-04-05 10:59:08

salimedwardo
Member
Registered: 2022-12-11
Posts: 9

Re: Change GLPI String in Browser title

If so part of it is under en_GB.php. The variable $lang['login'][10] equals 'Authentication'. The "GLPI - " bit is hard coded on index.php.

Offline

#14 2023-10-10 07:53:50

Urielo_vt
Member
Registered: 2023-10-10
Posts: 3

Re: Change GLPI String in Browser title

This is the rigth answer.

Thx.


SylvieC wrote:

Hi,

GLPI 10 is using twig template.
To change the default " - GLPI" string in the browser title, yo have to modify the file /templates/layout/parts/head.html.twig


itskaku wrote:

Hi ALL
Please help to change GLPI string name in browser title
That is Setup - GLPI in browser title i want to change GLPI in the Title
like Setup - (MY NAME)
I am using glpi 10.6 version so can'nt able to find common.php or html.class.php

Offline

Board footer

Powered by FluxBB