Somethings strange happens usign this modules...

The Taxonomy page title for esch term was changed correctly... but also ALL TITLES of ALL TEASER CONTENTS TOO...!!! :O

Example: Choosing for term Info the name "List of: Info" then all of content listed below will have the same name... of the page title...!!

Someone can help me?

CommentFileSizeAuthor
#2 taxonomy-title.png30.47 KBbinhcan
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sparksmedia’s picture

I'm glad I'm not the only one having this problem, been searching for an answer, but nothing. If anyone knows why this happens please let us know.

Thanks!

binhcan’s picture

FileSize
30.47 KB

I'm facing the same problem too. I enabled this plugin and added a Taxonomy Title for this Ming Dynasty Furniture term and it suppose to display that in the Page Title, but instead all the node title has been changed to the same thing.

I bet this will be a good SEO ranking for that thing, but the users won't like it. So please someone fix it. Thanks. Maybe it is me who will fix?

binhcan’s picture

Assigned: Unassigned » binhcan
Status: Active » Closed (fixed)

I fixed this by myself with the following solution:

In the file taxonomy_title.module
Replace this code

function taxonomy_title_preprocess(&$variables) {
  if (arg(0) == 'taxonomy' && arg(1) == 'term' && is_numeric(arg(2)) && arg(2) > 0) {
    $newtitle = _taxonomy_title_get_title(arg(2));
    if ($newtitle){
      // sets the meta title
      drupal_set_title($title);
      // assures the heading is also set
      $variables['title'] = $newtitle;
    }
  }
}

with this code:

function taxonomy_title_preprocess(&$variables) {
  if (arg(0) == 'taxonomy' && arg(1) == 'term' && is_numeric(arg(2)) && arg(2) > 0) {
    $newtitle = _taxonomy_title_get_title(arg(2));
    if ($newtitle){
      // sets the meta title
      drupal_set_title($newtitle);
      // assures the heading is also set
      //$variables['title'] = $newtitle;
    }
  }
}

Hehe, then here should be my credits, it's working on:
- The English version of Juyou Furniture: Classical Chinese Furniture
- The Chinese version of Juyou Furniture: 古典家私

Check the site and give me some hugs :)