Forums / Templates, Stylesheets, Page Layout / Admin home page title

Admin home page title

Locked

Started by ryk on 31 Jan 2008, 3:03 PM · Views: 2,576

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?

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

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

Zen cart PCI compliant Hosting

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?

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

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

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,691
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

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

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:

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

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,515
Plugin Contributions:
176

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.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.