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

ThePickwickProject’s picture

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?

nicholasthompson’s picture

Status: Active » Postponed (maintainer needs more info)

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?

ThePickwickProject’s picture

I guess I can check this via print_r($node) ? In that case, yes, there's a value for [title].

ThePickwickProject’s picture

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.

ThePickwickProject’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

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.

millionleaves’s picture

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!

abaddon’s picture

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

rho_’s picture

Also leaving for reference.

If you are using the Blueprint starter theme you will need to delete or comment out the following lines:

<?php
  if (!drupal_is_front_page()) {
    $vars['head_title'] = $title .' | '. $vars['site_name'];
    if ($vars['site_slogan'] != '') {
      $vars['head_title'] .= ' &ndash; '. $vars['site_slogan'];
    }
  }
?>

Found in the phptemplate_preprocess_page function in the theme's template.php file.

helloanshul’s picture

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

merqtio’s picture

@ #8 - That was a huge help. Thanks.