Need to Edit Title Tag

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
Ishita
New Member
New Member
Posts: 2
Joined: Wed Jul 06, 2011 7:30 pm

Need to Edit Title Tag

Post 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?
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Need to Edit Title Tag

Post by Wishbone »

What does your <title></title> section look like in your template?
Ishita
New Member
New Member
Posts: 2
Joined: Wed Jul 06, 2011 7:30 pm

Re: Need to Edit Title Tag

Post 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 ?
uniqu3

Re: Need to Edit Title Tag

Post 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>
Post Reply

Return to “The Lounge”