This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

How to customise title on article pages?


avatar
mishima 145
From: -
How to customise title on article pages?

Hi there,

How do I change the title on each page of an article or any other content for that matter. Say If I have an article and one of the pages are called "Introduction" The title of the webpage is just "Introduction" nothing to do with the title of the article itself, just that page name. I want it to be relevant to the article's name such as:

Internet Explorer 8 Review - Features

and not just:

Features

Any ideas how I can change the way contentteller displays this?

Thanks

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: How to customise title on article pages?
avatar
OP 145
From: -
Brilliant thanks, works great.
1 Re: How to customise title on article pages?
avatar
Editor
0
From: -
Thanks for pointing this out. I will change this in the next release Smiling Face

It is a fairly small modification. You need to open /modules/articles/articlespages.php in an editor and replace:

            if( $insert[ 'articlepage_title' ] )

{
$insert[ 'page_name' ] = $insert[ 'articlepage_title' ];
}
else
{
$insert[ 'page_name' ] = $insert[ 'article_title' ];
}


with this:

          if( $insert[ 'articlepage_title' ] )

{
$insert[ 'page_name' ] = $insert[ 'article_title' ] . " - " . $insert[ 'articlepage_title' ];
}
else
{
$insert[ 'page_name' ] = $insert[ 'article_title' ];
}

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.