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?
Re: Changing Page Titles in Admin Section
Quote:
Originally Posted by
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.
Code:
define('TITLE', 'Zen Cart');
It is not dynamically changed based on which admin activity you're performing.
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.
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.
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?
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
Re: Changing Page Titles in Admin Section
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.
Re: Changing Page Titles in Admin Section
If the title presently says "Zen Cart!", did you try searching for "Cart!" (including the exclamation point)?
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.