Closed (duplicate)
Project:
Tagadelic
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Mar 2009 at 12:14 UTC
Updated:
18 Mar 2009 at 09:11 UTC
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";
| Comment | File | Size | Author |
|---|---|---|---|
| tagadelic-6-patch.txt | 883 bytes | ducdebreme |
Comments
Comment #1
OneTwoTait commentedCool. It works. That was exactly what I was looking for.
Comment #2
Edlund commentedhttp://drupal.org/node/380100