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 2012-11-08 13:46:56

Conz
Member
Registered: 2010-11-02
Posts: 13

Change home default view

Is it possible to change the default view on the home page to be the 'all' view ?
I want helpdesk people to see unsigned tickets the moment they log in and the only place this seems to be is in the 'all' overview.

I can 'hack' the source to but I'm not sure where to look, they seem to be ajax operated buttons.

Offline

#2 2012-11-08 16:46:20

danh
Member
From: Chicago, USA
Registered: 2012-03-08
Posts: 546
Website

Re: Change home default view

That should be in the profile settings.


Thanks,
Dan

Offline

#3 2012-11-12 15:39:27

Conz
Member
Registered: 2010-11-02
Posts: 13

Re: Change home default view

I can't find it in the profile.

In the global profile settings all I can set is what kind of access is allowed, in the user settings there is no mention of anything like this.
The 'personal view' tab is empty though.

Offline

#4 2012-11-12 19:51:58

danh
Member
From: Chicago, USA
Registered: 2012-03-08
Posts: 546
Website

Re: Change home default view

Have you tried standard interface?


Thanks,
Dan

Offline

#5 2012-11-13 15:19:38

Conz
Member
Registered: 2010-11-02
Posts: 13

Re: Change home default view

danh wrote:

Have you tried standard interface?

Standard interface is our default interface for service people. It requires clicking to the 'all' tab before we can see unassigned tickets which is what I want to change.

Offline

#6 2012-11-13 16:17:03

danh
Member
From: Chicago, USA
Registered: 2012-03-08
Posts: 546
Website

Re: Change home default view

I must have misread your original post.  I don't know how to default to the All Tab.


Thanks,
Dan

Offline

#7 2012-11-15 12:19:15

Conz
Member
Registered: 2010-11-02
Posts: 13

Re: Change home default view

danh wrote:

I must have misread your original post.  I don't know how to default to the All Tab.

Happens, thanks for the attempt to help though :-)

I'll dig around in the php files to see if I can change it.

Offline

#8 2012-11-15 14:42:20

Conz
Member
Registered: 2010-11-02
Posts: 13

Re: Change home default view

And I 'fixed' it.
If anyone is interested, I added  '$_SESSION['glpi_tabs']['central'] = -1;' to login.php at line 77 just before the first if($_SESSION near there.
This makes glpi show the ALL tab after the initial login.

Like so:

// now we can continue with the process...
if ($auth->Login($_POST['login_name'], $_POST['login_password'],
                 (isset($_REQUEST["noAUTO"])?$_REQUEST["noAUTO"]:false))) {

   // Redirect to Command Central if not post-only
//Dirty hack
        $_SESSION['glpi_tabs']['central'] = -1;
//End dirty hack
   if ($_SESSION["glpiactiveprofile"]["interface"] == "helpdesk") {
      if ($_SESSION['glpiactiveprofile']['create_ticket_on_login'] && empty($REDIRECT)) {
         Html::redirect($CFG_GLPI['root_doc'] . "/front/helpdesk.public.php?create_ticket=1");
      }
      Html::redirect($CFG_GLPI['root_doc'] . "/front/helpdesk.public.php$REDIRECT");

   } else {

Offline

#9 2012-11-18 17:31:09

danh
Member
From: Chicago, USA
Registered: 2012-03-08
Posts: 546
Website

Re: Change home default view

This would be a good feature addition - the option to set a default time.


Thanks,
Dan

Offline

#10 2012-11-20 02:31:47

danh
Member
From: Chicago, USA
Registered: 2012-03-08
Posts: 546
Website

Re: Change home default view

Just came back to say this is a great find!


Thanks,
Dan

Offline

#11 2012-11-20 10:50:02

Conz
Member
Registered: 2010-11-02
Posts: 13

Re: Change home default view

I agree it would be nice to be able to customize a personal view or at least a setting what your default view is.
This was a basic requirement for us to not having to first click around before being able to see open unassigned tickets for service desk people.

Too easy to just log in and forget to look at the global picture after going 'on hey, i have 0 tickets waiting'

Offline

#12 2013-02-27 16:46:05

marcinr
Member
Registered: 2007-09-13
Posts: 49

Re: Change home default view

Conz wrote:

And I 'fixed' it.
If anyone is interested, I added  '$_SESSION['glpi_tabs']['central'] = -1;' to login.php at line 77 just before the first if($_SESSION near there.
This makes glpi show the ALL tab after the initial login.

Do you know how to set $_SESSION['glpi_tabs']['central'] so glpi shows "global view" instead "personal view" or "all"?


Answering to myself wink
Central$3

Last edited by marcinr (2013-02-27 16:51:42)

Offline

#13 2015-05-29 10:04:28

Kimono267
Member
Registered: 2008-06-24
Posts: 7

Re: Change home default view

marcinr wrote:
Conz wrote:

And I 'fixed' it.
If anyone is interested, I added  '$_SESSION['glpi_tabs']['central'] = -1;' to login.php at line 77 just before the first if($_SESSION near there.
This makes glpi show the ALL tab after the initial login.

Do you know how to set $_SESSION['glpi_tabs']['central'] so glpi shows "global view" instead "personal view" or "all"?


Answering to myself wink
Central$3

Hello Marcinr,
but I can't change the script as indicated, tea to go on "Global View". Where do I enter "Central$3"??

P.S.
Anyone can give some help is welcome ;-)

Offline

#14 2015-05-29 10:33:11

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,168

Re: Change home default view

HI,

GLPI version ?


Trouver la panne avant de réparer...
GLPI10.0.10 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.2 reports 1.16.0 formcreator 2.13.8, datainjection 2.13.4 fields 1.21.6

Offline

#15 2015-05-29 10:45:33

Kimono267
Member
Registered: 2008-06-24
Posts: 7

Re: Change home default view

LaDenrée wrote:

HI,

GLPI version ?

0.85.2 Many thanks ;-)

Offline

#16 2015-06-02 19:14:47

findcompanions
Member
Registered: 2015-06-02
Posts: 1

Re: Change home default view

Even i am interested in this .. new here .. I am planning to hire an developer to guide me better in this .. but most is foreign language in this forum .. i am have to translate and read it

Thanks
http://www.chillyads.co.uk

Offline

#17 2019-05-17 22:06:16

snowman386
Member
Registered: 2006-07-28
Posts: 88

Re: Change home default view

Just curious if there has been an option added to the ui to do this in 9.3?

Offline

#18 2020-03-18 18:27:56

yann.dreneau
Member
Registered: 2017-03-24
Posts: 21

Re: Change home default view

snowman386 wrote:

Just curious if there has been an option added to the ui to do this in 9.3?

Hi,

In case you needed it, i have modify in inc/auth.class.php, the function redirectIfAuthenticated
Html::redirect($CFG_GLPI['root_doc'] . "/front/central.php");
To :
Html::redirect($CFG_GLPI['root_doc'] . "/front/ticket.php");

Best regards,

Yann

Offline

Board footer

Powered by FluxBB