phpLD Title Question

Discussion in 'Directories' started by Nima, Apr 29, 2009.

  1. #1
    I have two directories that both have the exact same title code and the same "Name" under Admin > Site and the same Title under Admin > Directory

    The title code is

    
    <title>{$tdescription} {if empty ($tdescription)}{$smarty.capture.title|strip|trim}{/if} - {if empty ($TITLE)}{$smarty.const.DIRECTORY_TITLE|escape|trim}{/if}</title>
    
    Code (markup):
    but i'm getting different homepage titles for them. Why is that?

    I want the Lili Directory's homepage's title to be "Website Directory - Lili Directory". but cant figure out why its not

    Thanks
     
    Nima, Apr 29, 2009 IP
  2. jitendraag

    jitendraag Notable Member

    Messages:
    3,982
    Likes Received:
    324
    Best Answers:
    1
    Trophy Points:
    270
    #2
    Is the code same in both directories' templates? More often than not this is the issue.

    Do you also have a description in Admin -> Site for both?
     
    jitendraag, Apr 29, 2009 IP
  3. marki8

    marki8 Well-Known Member

    Messages:
    977
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    135
    #3
    make manual code there, delete old code and put your own code.. like <title></title>
     
    marki8, Apr 29, 2009 IP
  4. WallaceYeung

    WallaceYeung Notable Member

    Messages:
    3,377
    Likes Received:
    164
    Best Answers:
    0
    Trophy Points:
    230
    Digital Goods:
    1
    #4
    Yeah, it's the easy method that you can do,
    But you maybe need to change the title code manually each time.
     
    WallaceYeung, Apr 29, 2009 IP
  5. Nima

    Nima Well-Known Member

    Messages:
    3,489
    Likes Received:
    243
    Best Answers:
    0
    Trophy Points:
    175
    #5
    yes to both questions.

    I checked and double checked and triple checked (same with the description in Admin --> Directory
     
    Nima, Apr 29, 2009 IP
  6. ramp5115

    ramp5115 Banned

    Messages:
    123
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    replace the title code by this, in header.tpl file
    
    <title>{if empty ($TITLE)}{$smarty.const.DIRECTORY_TITLE|escape|trim}{/if}{$smarty.capture.title|strip|trim}</title>
    Code (markup):
     
    ramp5115, Apr 29, 2009 IP