Results 1 to 6 of 6

Thread: Page Title Problem

  1. #1
    Join Date
    Dec 2008
    Posts
    11

    Default Page Title Problem

    Hi,

    This is what I have on my browse.html

    <%include file="header.html"
    title="$page_title, "
    meta_keywords="$meta_keywords"
    meta_description="$meta_description"
    %>


    I tried to change title="$page_title, " to title="$category $page_title, " but it didn't work.

    My goal is to have the title read as Category : Site Title

    Please advise.

  2. #2
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    Not sure if this is right, but try using $cat
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  3. #3
    Join Date
    Dec 2008
    Posts
    11

    Default

    Thanks FSGDAG . I did and here is what I did and what I got so far :

    1. on browse.html , changed title to title="$cat $page_title"

    2. on browse.php line 51, changed $category_obj->GetPageTitle($cat); to $category_obj->GetCategoryPath($cat);


    Now the title I have for the category page looks like this :
    1. category Top > A , the title read catID A , the catID is for A .
    2. category Top > A > B , the title read cateID A > B , the catID is for B .

    How can I have the title read current category name > site title ?

    For example, if I have title="XXX" on index.html , the title of the page when I browse into Top > A > B should read B > XXX or B > A : XXX as for sub category name > main category name : website title .
    Last edited by iglue; 01-06-2009 at 03:12 AM.

  4. #4
    Join Date
    Dec 2008
    Posts
    11

    Default

    any suggestion please? this is my website alabamadirectoryDOTorg if it would give you a better idea of what i'm talking about .

    Thanks.

  5. #5
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    By website title I assume you mean some static text like "this is my website" or the URL of your site.

    If so why not just add the text instead of trying to insert a variable where it's not available.

  6. #6
    Join Date
    Dec 2008
    Posts
    11

    Default

    Thanks Bruceper I got the title read " Category A > Category B : Homepage Title " by adding text to
    file browse.html
    line 5 , change title="$page_title, " to
    title="$page_title : Homepage Title"
    Last edited by iglue; 01-12-2009 at 11:12 PM.

Similar Threads

  1. Page Title not Changing
    By whatcomweb in forum v5.x
    Replies: 2
    Last Post: 09-19-2007, 03:43 PM
  2. Changing TITLE for each page
    By highfly in forum v5.x
    Replies: 3
    Last Post: 04-18-2006, 07:56 PM
  3. Page Title for Custom Contact Page
    By thespursfan in forum v5.x
    Replies: 3
    Last Post: 10-30-2005, 02:12 PM
  4. title problem.
    By lewisw in forum v3.2
    Replies: 2
    Last Post: 12-26-2003, 11:34 AM
  5. Page Title
    By mcyates in forum v5.x
    Replies: 2
    Last Post: 12-28-2002, 10:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •