Closed (fixed)
Project:
Framework
Version:
6.x-1.11
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Aug 2008 at 20:30 UTC
Updated:
25 Aug 2008 at 04:01 UTC
Hello,
For SEO reasons, 2 pages on a same server can't have the same title,
here is a quick & dirty fix.
Add to template.php
/**
* Correct the title for mutiple pages node/views/frontage and others
*/
function phptemplate_head_title($head_title) {
if($_GET['page']) {
$head_title .= ' page ' . ((int)$_GET['page'] + 1);
}
return $head_title;
}
In page.tpl.php
change :
<title><?php print $head_title; ?></title>
to :
<title><?php print phptemplate_head_title($head_title); ?></title>
Bye
Antoine
Comments
Comment #1
andregriffin commentedSorry, but I'm not exactly clear on what this is fixing.
Comment #2
andregriffin commentedComment #3
andregriffin commented