1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Showing both parent & child cat name in <title>

Discussion in 'Templates, HTML, CSS, and Design Help' started by jason1971, Dec 5, 2013.

  1. jason1971 Customer

    Hi all,

    Just a quick question, I am wondering whether it is possible to show both the parent and child category names together in the <TITLE> tag.

    IE: Houses as parent category, and semi-detached as child category

    But then I want it to read semi-detached Houses for sale etc in the <TITLE> tag

    Is it possible ?

    Many Thanks

    Jason
  2. freeze2 Super Moderator

    First thing I would do is run a Smarty {debug}

    Insert {debug} at the top of the layout.tpl file. This will produce a popup with all options available for the page.

    Off the top...I'm not sure if what you are describing can be done...once you see the options from the {debug} it should answer your question.

    Other ways around this may be to do some conditional statements like:

    Code:
    {if $categoryid=='1'}
    <title>whatever you want goes here</title>
    {elseif $categoryid=='2'}
    <title>whatever you want goes here</title>
    {/if}
    I'm not sure if that will work, but you can try and see what happens.
  3. jason1971 Customer

    Thanks Freeze

Share This Page