Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Admin home page title

Admin home page title

Locked

Views: 2,574

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
31 Jan 2008, 3:03 PM
#1
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Admin home page title

Having been asked by a client to change the Admin home page title that displays in the browser, this simple little job proved anything but!

Either there's something wrong with the way things are on this particular cart, or there is a rather weird anomaly in ZenCart (using 1.3.8a but I don't think that matters)

I would have expected the define to be in one of the admin language files...but no - the only way I have been able to change that page title is to edit /includes/languages/english/meta_tags.php and alter the define('TITLE', 'ZenCart!'); and re-upload it - it does NOT work from the override directory.

Is this correct?

31 Jan 2008, 3:31 PM
#2
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Admin home page title

Just uncomment this
//define('TITLE', 'Zen Cart');

line 42 in admin/includes/languages/english.php

Works like a charm

31 Jan 2008, 3:39 PM
#3
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: Admin home page title

Now THAT makes sense - but why is it commented out in the first place?

31 Jan 2008, 3:45 PM
#4
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,606
Plugin Contributions:
0

Re: Admin home page title

:D The Team officially refuses to comment on that on the grounds it might tend to incriminate us. :D

Unofficially - I think someone was having a blond moment

31 Jan 2008, 3:51 PM
#5
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: Admin home page title

Thank heavens for that - I was doubting my own sanity there for a moment! :laugh:

24 Jan 2009, 6:17 PM
#6
lurkerfilms avatar

lurkerfilms

New Zenner

Join Date:
Aug 2005
Posts:
20
Plugin Contributions:
0

Re: Admin home page title

That is great... but will it give the same title page for all admin pages? I want to detect using scripting what page I'm on using just the title. E.g. is this the login page or the orders page etc.

Make sense?

cheers

24 Jan 2009, 6:19 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Admin home page title

lurkerfilms:

That is great... but will it give the same title page for all admin pages? I want to detect using scripting what page I'm on using just the title. E.g. is this the login page or the orders page etc.
The current structure of the admin scripts doesn't allow for per-page title control. That will change in a future version when the admin is rewritten.