Forums / Customization from the Admin / Admin Page - How to change Meta Title?

Admin Page - How to change Meta Title?

Locked

Views: 2,201

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
22 May 2010, 3:45 PM
#1
feznizzle avatar

feznizzle

Totally Zenned

Join Date:
Apr 2010
Posts:
900
Plugin Contributions:
0

Admin Page - How to change Meta Title?

Hi!

I just upgraded to 139c.

I am trying to figure out WHERE the meta title tag is for the Admin section.

The reason is that when I am making changes to EZpages or products or whatever, I will frequently have tons of pages open in a bunch of tabs... all on a single browser window.

I might have a couple windows with products open so I can compare b4 and after. I might have a couple admin pages open. I might have cpanel or whm open. It gets messy after a bit!

If I could change the meta title to ADMIN, then the word ADMIN will appear on the tab in Firefox. This way I won't have to hunt around for my admin page.

Can someone point me to the file that controls this?

Also, it appears that the meta title being used is being automatically being inserted from db. How do I change it from a db call to a static term... from INSERT_SOMETHING to "ADMIN")?

Any help would be greatly appreciated!

22 May 2010, 4:01 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Admin Page - How to change Meta Title?

Uncomment the title tag in your admin english.php file, and set the text to what you wish.

.
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.

22 May 2010, 4:13 PM
#3
feznizzle avatar

feznizzle

Totally Zenned

Join Date:
Apr 2010
Posts:
900
Plugin Contributions:
0

Re: Admin Page - How to change Meta Title?

Most excellent, fount it! Thanks, DrByte!

But I'm a little uncertain. Here is what I found:

// removed for meta tags
// page title
//define('TITLE', 'Zen Cart');

// include template specific meta tags defines
if (file_exists(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/' . $template_dir . '/meta_tags.php')) {
$template_dir_select = $template_dir . '/';
} else {
$template_dir_select = '';
}
require(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/' . $template_dir_select . 'meta_tags.php');

// meta tags

I don't want to mess anything up! Will this work:

// removed for meta tags
// page title
define('TITLE', 'ADMIN');

// include template specific meta tags defines
// if (file_exists(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/' . $template_dir . '/meta_tags.php')) {
// $template_dir_select = $template_dir . '/';
// } else {
// $template_dir_select = '';
// }
// require(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/' . $template_dir_select . 'meta_tags.php');

// meta tags

22 May 2010, 4:17 PM
#4
feznizzle avatar

feznizzle

Totally Zenned

Join Date:
Apr 2010
Posts:
900
Plugin Contributions:
0

Re: Admin Page - How to change Meta Title?

I applied the changes, seems to work without issue. Just want to confirm that all those // that I added will not effect anything except meta tag title on the admin section.

22 May 2010, 6:23 PM
#5
drbyte avatar

drbyte

Sensei

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

Re: Admin Page - How to change Meta Title?

It's not necessary to comment out all the other stuff, but there's no harm in having done so.

.
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.

22 May 2010, 6:29 PM
#6
feznizzle avatar

feznizzle

Totally Zenned

Join Date:
Apr 2010
Posts:
900
Plugin Contributions:
0

Re: Admin Page - How to change Meta Title?

Good to know, thanks!