Please include this patch.

Recently i activated the module taxonomy_redirect. After that, all tags in tagadelic/list/1 have the same size.

The problem was in tagadelic.module (line 328)

function theme_tagadelic_weighted($terms) {
  $output = '';
  foreach ($terms as $term) {
    $output .= l($term->name, taxonomy_term_path($term), array('attributes' => array('class' => "tagadelic level$term->weight", 'rel' => 'tag'))) ." \n";

  }
  return $output;
}

The reason was: within the loop the $term was altered by the function taxonomy_term_path(), thus loosing the property $term->weight.
The solution was to change the loop to

    $weight = $term->weight; // save the Weight - it may be changed by hooks in <strong>taxonomy_term_path()</strong>
    $output .= l($term->name, taxonomy_term_path($term), array('attributes' => array('class' => "tagadelic level$weight", 'rel' => 'tag'))) ." \n";
CommentFileSizeAuthor
tagadelic-6-patch.txt883 bytesducdebreme

Comments

OneTwoTait’s picture

Cool. It works. That was exactly what I was looking for.

Edlund’s picture

Status: Active » Closed (duplicate)