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
Displaying blog title in the page title for SEO
Re: Displaying blog title in the page title for SEO
Asked many times before but can't find in quickly
PAGE template:
Note the difference between {title} and {$title}
Then somewhere in Blog detail template:
Assuming $entry is blog entry and it has title property (don't know Blog module myself)
PAGE template:
Code: Select all
{title assign='title'}
<__html ...>
<head>
<title>{$title} | {sitename}</title>
Then somewhere in Blog detail template:
Code: Select all
{assign var='title' value=$entry->title}

