How to customise title on article pages?
mishima 144
From: -
From: -
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?
mishima
OP
144
From: -
From: -
Brilliant thanks, works great.
1 Re: How to customise title on article pages?
Philipp Esselbach
From: -
Editor
0From: -
Thanks for pointing this out. I will change this in the next release
It is a fairly small modification. You need to open /modules/articles/articlespages.php in an editor and replace:
with this:
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' ];
}
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