Whenever I create new or edit old article, I'm having an extra field where can set the Page Title for that node, but it don't work - don't change anything.
The patterns in settings of module are working OK, but I want to have an unique page title for every page.
Drupal 5.12. Help me with that please

Comments

nicholasthompson’s picture

Status: Active » Closed (works as designed)

Have you added the code to the theme template, as per the README.txt file?

The Drupal 5 version of this module requires a theme tweak - Drupal 6 onwards works out of the box.

Please mark as "active" if this is still a problem.

ar4’s picture

Status: Closed (works as designed) » Active

Yes, I added code in template.php (theme - garland) as was written in readme.txt, but problem was not solved.

nicholasthompson’s picture

Ok, I'll need more information to help you debug this.
1) What are your Page Title settings? (A screenshot might be easiest)
2) What is in your _phptemplate_variables? Please paste the content here.
3) What's your site's URL?

ar4’s picture

Thanks for helping me.
1)http://s45.radikal.ru/i110/1007/0c/871680c60526.jpg

2)

 function _phptemplate_variables($hook, $vars) {

  if ($hook == 'page') {
  
  
  // for module Page Title
if (module_exists('page_title')) {
    $vars['head_title'] = page_title_page_get_title();
  }
  // for module Page Title

    if ($secondary = menu_secondary_local_tasks()) {
      $output = '<span class="clear"></span>';
      $output .= "<ul class=\"tabs secondary\">\n". $secondary ."</ul>\n";
      $vars['tabs2'] = $output;
    }

    // Hook into color.module
    if (module_exists('color')) {
      _color_page_alter($vars);
    }
    return $vars;
  }
  return array();
}

3) _strahovik.com

nicholasthompson’s picture

I don't speak Russian, so it's a little difficult to tell if its DEFINITELY working, however..

Take: http://strahovik.com/node/762

The Node Title is: АХА стала страховым партнером пивоваренной компании «Сармат»

However the title in the head, in <title> is: АХА стала страховым партнером пивоваренной компании «Сармат». Страхование в Украине. Страховые компании Украины » Страховик

Which, although (to me) looks the same at the beginning, is clearly different to the Node Title.

So Page title is doing it job here, it's allowing you to specific a different title in the <title> element (for Search Engines, for example) compared to the Node Title which appears in the <h1>'s or just as links to the node.

What specifically is your problem with Page title?

ar4’s picture

I'm sorry if I poorly explained the problem, as you can guessed english is not my native language.

I want manually change titles for any node of site.
So, if my Node Title is: "Life Insurance 2009" and I want, that title in head in <title> changed in "Auto Insurance 2010".
After installing module I have an extra field in each node, but it isn't changing <title>, it doing nothing.

Now I can just set patterns in settings like "[page-title] [site-name]" that will be "Life Insurance in 2009. site.com".
May be I don't understand something?

Thanks

nicholasthompson’s picture

Sounds like you've got the right module.

You'll need to make sure the pattern for the node type (such as Page or Story) is set to use the [page-title] token, not the [title] token. It sounds like you've already got the Page Title field exposed on the node type, this is good.

The only final thing I can think of is that the theme is not configured correctly. Are you using a base theme (not sure if D5 supports base themes)? The snippet above looks correct....

nicholasthompson’s picture

Status: Active » Closed (won't fix)

No reply in 10 weeks. Marking as closed. Plus...

I've decided that 2.3 shall be the last of the DRUPAL-5 releases. I simply do not have the bandwidth or energy to maintain that branch anymore. If anyone wishes to become a co-maintainer for the DRUPAL-5 branch, please contact me.