CMSMS : Create Unique Titles for News Articles

It is important for search engines that you display unique page titles for each page. Some modules need this title functionality added in. 

 

1.   Go to Admin > News > Details Template

 

2.   Paste this code above the other code... 

 

 

This line will generate the ->title|escape tag, containing the title of the news article.

 

3.   Open your template and replace your title tag with the following code

 

{if isset($pagetitle) && !empty($pagetitle)}
<title>{sitename} - {$pagetitle}</title>
{else}
<title>{sitename} - {title}</title>
{/if}