Posted by ThePickwickProject on December 22, 2008 at 8:37am
Jump to:
| Project: | Page Title |
| Version: | 6.x-2.0 |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
I read that this is now "a plug and play" module, so I understood that there's no longer a need to change any theme settings in the template.php file. Is this correct? Because I can't get the page title to display on any of my story pages. I'm using one of the Topnotchthemes and one of the latest D6 releases.In the past, I managed to get this module to work in D5.
Comments
#1
After some more testing: when a page title is manually added during node creation, a record is created in the table "page title" but is not shown on the node. I guess this is due to some theme settings, but I'm not sure if I should follow the instructions for D5 and change the template.php file?
#2
D6 should require no theme template modification due to the new theming functions avaiulable to the module.
Does your theme's page.tpl.php print out $title?
#3
I guess I can check this via
<?phpprint_r($node)
?>
#4
When I change the theme to Garland, the page title is displayed correctly. In the Acquia Marina theme it isn't. I will post the solution - for other less experienced user like I am - as soon as I've found it.
#5
I found it: certain themes (like the free Acquia Marina theme from TopNotchThemes.com) have their own settings for SEO and page title. By changing that setting once, the page titles displayed correctly.
1. Go to admin/build/themes/settings/your_theme_name
2. Scroll down and look for theme specific settings (if any)
3. Look for SEO settings
4. Change the page title settings as you want
Hope this helps.
#6
Thanks - this solved my problem. Perhaps it would be helpful if the theme could tell the Page Title module that it's overriding the Page Title settings - or at least the Page Title module could have a statement to the effect that some themes will do this. Save some head scratching for us all!
#7
leaving this here for reference
waffles theme (acquia marina derived) http://drupal.org/node/460090
and to clear on #5 > 4., you can get page_title to work, just set the page title on the theme settings page to Custom and leave the custom value below it empty
#8
Also leaving for reference.
If you are using the Blueprint starter theme you will need to delete or comment out the following lines:
<?phpif (!drupal_is_front_page()) {
$vars['head_title'] = $title .' | '. $vars['site_name'];
if ($vars['site_slogan'] != '') {
$vars['head_title'] .= ' – '. $vars['site_slogan'];
}
}
?>
Found in the phptemplate_preprocess_page function in the theme's template.php file.
#9
It is very simple... Go to acquia marina theme settings page.... just set the page title on the theme settings page to Custom and leave the custom value below it empty
#10
@ #8 - That was a huge help. Thanks.