Forums / Templates, Stylesheets, Page Layout / Changing Page Titles in Admin Section

Changing Page Titles in Admin Section

Views: 2,033

Results 1 to 11 of 11
7 Feb 2012, 12:01 AM
#1
sperdie avatar

sperdie

Zen Follower

Join Date:
Feb 2005
Location:
Jim Thorpe Pennsylvania
Posts:
131
Plugin Contributions:
0

Changing Page Titles in Admin Section

I edited the meta_tags.php and all my page titles are just fine. Problem I have is with the admin section. All pages show Zen Cart! as page titles. The strange thing is that I searched the site for "Cart!" matches but found only in english.php. I don't see any meta_tags.php for the Admin Area. I have cleared my cache. Any idea of why the admin page titles are not reflecting the changes in meta_tags.php while the non admin pages do?

Got a Zencart Tatoo & Vanity Plate

7 Feb 2012, 12:09 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: Changing Page Titles in Admin Section

sperdie:

All pages show Zen Cart! as page titles.
Yes, at the present time all the admin pages use the same title text, and that's based on whatever you've defined TITLE as for your current template.```
define('TITLE', 'Zen Cart');

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

7 Feb 2012, 1:17 AM
#3
sperdie avatar

sperdie

Zen Follower

Join Date:
Feb 2005
Location:
Jim Thorpe Pennsylvania
Posts:
131
Plugin Contributions:
0

Re: Changing Page Titles in Admin Section

Thank you for your response. My issue is not that all the pages are not titled correctly, they are. Each page has taken on the value that I put in the meta_tags.php. But any page that is generated from the admin section, ie: the log in or invoices, takes the value "Zen Cart!" that is NOT in my meta_tags value. In the admin section, I didn't expect the page titles to by dynamic- I don't care about that. I expected that the admin pages would at least take on the value of my meta_tags.php setting. They clearly do not. So If I am at any admin page the page titles are all "Zen Cart!" but if I am on any page from the Main page to any page that is not generated from the Admin side then the page names display the value that I set in meta_tags.php.
The issue pops up when I go to print an invoice. The invoice takes the page name and puts it at the top of the page.
Is there any reason why my Admin pages are not taking the value specified in meta_tags.php? I see that the english.php comments out the page name and tag line settings and directs me to the meta_tags.php for this value.

Got a Zencart Tatoo & Vanity Plate

7 Feb 2012, 1:19 AM
#4
drbyte avatar

drbyte

Sensei

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

Re: Changing Page Titles in Admin Section

You must have a define for it someplace in your admin files, else it would be correctly taking on what you've set in your template.

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

7 Feb 2012, 1:25 AM
#5
sperdie avatar

sperdie

Zen Follower

Join Date:
Feb 2005
Location:
Jim Thorpe Pennsylvania
Posts:
131
Plugin Contributions:
0

Re: Changing Page Titles in Admin Section

This was a fairly new install. I didn't have a chance to change anything from the original files. (I scanned for file changes since install date and no suspects) Obviously it has to come from somewhere. Any suggestions?

Got a Zencart Tatoo & Vanity Plate

7 Feb 2012, 1:28 AM
#6
sperdie avatar

sperdie

Zen Follower

Join Date:
Feb 2005
Location:
Jim Thorpe Pennsylvania
Posts:
131
Plugin Contributions:
0

Re: Changing Page Titles in Admin Section

Just to be clear- You mentioned changes to "Templates" the meta_tags.php that I edited is not in the Template directory. I found it in Includes>Languages>English>meta_tags.php

Got a Zencart Tatoo & Vanity Plate

7 Feb 2012, 1:46 AM
#7
drbyte avatar

drbyte

Sensei

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

Re: Changing Page Titles in Admin Section

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

7 Feb 2012, 1:57 AM
#8
sperdie avatar

sperdie

Zen Follower

Join Date:
Feb 2005
Location:
Jim Thorpe Pennsylvania
Posts:
131
Plugin Contributions:
0

Re: Changing Page Titles in Admin Section

Thanks for your help. I used TexFinderX (searching using the Developers tool kit seems to be hit and miss) to search the files but could not find it . I am going to download a backup of the site and scan the downloaded files for the phrase. It does have to come from somewhere.

Got a Zencart Tatoo & Vanity Plate

7 Feb 2012, 2:51 AM
#9
drbyte avatar

drbyte

Sensei

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

Re: Changing Page Titles in Admin Section

If the title presently says "Zen Cart!", did you try searching for "Cart!" (including the exclamation point)?

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

7 Feb 2012, 4:23 AM
#10
sperdie avatar

sperdie

Zen Follower

Join Date:
Feb 2005
Location:
Jim Thorpe Pennsylvania
Posts:
131
Plugin Contributions:
0

Re: Changing Page Titles in Admin Section

I am searching for Cart!
I went to the login page and viewed source code: <title>Zen Cart!</title>
I downloaded all the files and searched for Cart!
found only one instance in includes>languages>english.php
and that instance is commented out:
// FOLLOWING WERE moved to meta_tags.php
//define('TITLE', 'Zen Cart!');
This makes absolutely no sense whatsoever.
So, just for fun, I un-commented the title line and put 'Nutritional Needs' instead of 'Zen Cart!' No change.
the site is www.nutritionalnee############fo
I used the developer tools and searched for Cart! and found:
/hermes/web01c/b1115/moo.sperdie/nutritionalneeds/includes/languages/english/meta_tags.php
Line #10 : define('TITLE', 'Zen Cart!');
So.. I edited the file, saved it. Uploaded it and no change (ARRGGHH!!)
So I repeated the search for Cart! and I still found the reference in the same file. So I'm thinking its a file permissions thing, so I changed the file name (successfully) and uploaded my edited version. STILL no change. So I check the date of the file that I was ftping and AH HA its an older file- I'm in the wrong directory. So get the right directory/file upload and RATS! no change.
In Dev Tool kit did search and still showing that line 10:
/hermes/web01c/b1115/moo.sperdie/nutritionalneeds/includes/languages/english/meta_tags.php
Line #10 : define('TITLE', 'Zen Cart!');
So I delete the meta_tags.php file completely from the server. NO CHANGE my non Admin pages get: 500 Internal Server Error but the admin pages work normally (except for the title) (ARRRGH UGH #%#$@$#%$%$)
So I am going to go to bed now and tomorrow I am going to find out what I'm missing. Perhaps its sleep deprivation. (I am singing "Granada" to an imaginary herring as I type this) I'm sure its something stupid but I just can't wrap my brain around this one. But If nothing else I am a persistant MF and I will solve this. I checked my other Zen Installs- None of them seem to have this problem. Thank you so much for your time in looking at this.

Got a Zencart Tatoo & Vanity Plate

7 Feb 2012, 4:38 AM
#11
drbyte avatar

drbyte

Sensei

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

Re: Changing Page Titles in Admin Section

Sounds very much like you're editing the wrong file, or your edits are not actually being uploaded.
Plus, if your admin has a define for 'TITLE' set in any of its files, it may be overriding any edits you're making in the normal places.
Check for extra files on your server that don't belong (backups you've made but haven't deleted, stuff left over from old customizations, stuff added by addons that may not be well-written, etc). Ref: http://www.zen-cart.com/wiki/index.php/Troubleshoot_-_Diagnosing_Obscure_Issues

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