Page 1 of 1

Need to Edit Title Tag

Posted: Wed Jul 06, 2011 8:24 pm
by Ishita
I am trying to add a custom title tag to each of my pages but even after having the custom title in the options tab of the page it still displays the website name and not the title that I put in. Where am I going wrong?

Re: Need to Edit Title Tag

Posted: Wed Jul 06, 2011 10:59 pm
by Wishbone
What does your <title></title> section look like in your template?

Re: Need to Edit Title Tag

Posted: Tue Jul 12, 2011 5:00 pm
by Ishita
When I edit the page, under "options" tab when I put the title and include {description} in the body of the content, nothing happens. Is that what you mean by template? If not, where do I see that ?

Re: Need to Edit Title Tag

Posted: Wed Jul 13, 2011 4:07 pm
by uniqu3
You can find "Template" in "Layout -> Templates" and in default Templates you will see something like this <title>{title} | {sitename}</title>

If you are entering you custom title in Title Attribute field in options tab then you could use
<title>{$content_obj->mTitleAttribute}</title>

Or for example only if something was entered:
<title>{title} | {if !empty($content_obj->mTitleAttribute)}{$content_obj->mTitleAttribute}{else} {sitename}{/if}</title>