Page 1 of 1

Displaying blog title in the page title for SEO

Posted: Fri Jul 11, 2014 4:14 pm
by delve2013
Can someone help me, I would like to display my blog article title inside my page title on the blog article detail page.

At the moment the detail article page displays the page title like this:

Blog | Website Name

For SEO purposes I would like the title to be in the following format:

Some Blog Article Title | Website Name

Re: Displaying blog title in the page title for SEO

Posted: Fri Jul 11, 2014 6:27 pm
by velden
Asked many times before but can't find in quickly

PAGE template:

Code: Select all

{title assign='title'}
<__html ...>
  <head>
    <title>{$title} | {sitename}</title>
Note the difference between {title} and {$title}

Then somewhere in Blog detail template:

Code: Select all

{assign var='title' value=$entry->title}
Assuming $entry is blog entry and it has title property (don't know Blog module myself)