[Done v1.3.9a] Customized Title not shown on Admin Home page (ignores tpl override)
Issue:
Customizing the file
includes/languages/english/meta_tags.php
and modifying the TITLE define works fine in the catalog but is not
reflected in the Admin section.
Root Cause:
In admin/includes/languages/english.php, $template_dir not set
This results in the defaults from includes/languages/english being used, rather than any customizations.
The workaround is to change admin/includes/languages/english.php just after
// removed for meta tags
// page title
//define('TITLE', 'Zen Cart');
// include template specific meta tags defines
to include the code
// removed for meta tags
// page title
//define('TITLE', 'Zen Cart');
// include template specific meta tags defines
$template_query = $db->Execute("select template_dir
from " . TABLE_TEMPLATE_SELECT .
" where template_language = '0'");
$template_dir = $template_query->fields['template_dir'];
This is just a workaround; I'm sure the final fix will be quite different.
Be sure to back up admin/includes/english/english.php so you can restore it
when a proper fix is provided.
Scott
Re: Customized Title not shown on Admin Home page
BIG thanks for working that one out - wonder why there's no fix yet?
Re: Customized Title not shown on Admin Home page
Quote:
Originally Posted by kelvyn
BIG thanks for working that one out - wonder why there's no fix yet?
Hmm, I just realised that this is also doing this on 1.3.5.
Have I done something wrong on the upgrade, or is this still not fixed in the code?
Re: Customized Title not shown on Admin Home page
It has not yet been fixed in core code. It has behaved this way for a long time, and it's always aggravated me because I'm the kind of dork who likes to have 27 windows open, so the title is very important to me.
Here's a nicer presentation of this tip for those who want it:
http://www.thatsoftwareguy.com/zencart_admin_title.html
Scott
Re: Customized Title not shown on Admin Home page
Quote:
Originally Posted by swguy
It has behaved this way for a long time, and it's always aggravated me because I'm the kind of dork who likes to have 27 windows open, so the title is very important to me.
Here's a nicer presentation of this tip for those who want it:
http://www.thatsoftwareguy.com/zencart_admin_title.html
Scott I'm with you on this ;-) Can you confirm if your fixes above work well in 1.35x?
Re: Customized Title not shown on Admin Home page
Works like a champ! In fact, I just updated my page to indicate that this fix is required in 1.3.0-1.3.5.
Scott
Re: Customized Title not shown on Admin Home page
My fix is still required in 1.3.6. I have updated my documentation to reflect this.
http://www.thatsoftwareguy.com/zencart_admin_title.html
Scott
Re: Customized Title not shown on Admin Home page
I found that in v1.3.6 I was able to change the Admin Title with just one change.
admin/includes/languages/english.php
line 40
// removed for meta tags
// page title
define('TITLE', 'Admin - Name of Site);
Re: Customized Title not shown on Admin Home page (ignores template override)
This works but it could be confusing if you have overriden this file. Other changes you make in the core file (but not your override) would not be picked up.
Scott
Re: Customized Title not shown on Admin Home page (ignores template override)
Template overrides are being used so not sure what you mean by "if you have overriden this file"?