Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,236
    Plugin Contributions
    20

    Default 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
    Over 15 years with Zencart

  2. #2
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Admin home page title

    Just uncomment this
    //define('TITLE', 'Zen Cart');

    line 42 in admin/includes/languages/english.php

    Works like a charm

  3. #3
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,236
    Plugin Contributions
    20

    Default Re: Admin home page title

    Now THAT makes sense - but why is it commented out in the first place?
    Development Manager @ JSWeb Ltd
    Over 15 years with Zencart

  4. #4
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Admin home page title

    The Team officially refuses to comment on that on the grounds it might tend to incriminate us.

    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.

  5. #5
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,236
    Plugin Contributions
    20

    Default Re: Admin home page title

    Thank heavens for that - I was doubting my own sanity there for a moment!
    Development Manager @ JSWeb Ltd
    Over 15 years with Zencart

  6. #6
    Join Date
    Aug 2005
    Posts
    20
    Plugin Contributions
    0

    Default 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

  7. #7
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Admin home page title

    Quote Originally Posted by lurkerfilms View Post
    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.

 

 

Similar Threads

  1. Changing Page Title on Home Page and Categories
    By gws76 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 12 Oct 2010, 07:56 PM
  2. title change error now says meta_tag_title not the home page title
    By mgifts in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 2 Sep 2010, 07:10 AM
  3. Replies: 19
    Last Post: 22 Apr 2010, 12:49 AM
  4. Home page title
    By pb4 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 2 Feb 2010, 02:41 PM
  5. Home Page Title Problem
    By doll5272 in forum General Questions
    Replies: 5
    Last Post: 28 Feb 2009, 07:38 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR