Closed (duplicate)
Project:
Taxonomy Redirect
Version:
6.x-1.3
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Apr 2009 at 13:35 UTC
Updated:
14 Nov 2009 at 06:41 UTC
Hi,
the module works fine for me with one of my vocabs, redirecting to vews displays etc..
Only one thing I do not understand.
Just as I created taxonomy redirect (for one term in my vocab as a test, first, then for all terms in the vocab) Tagadelic module changed type sizes for all my terms.
I tried to understand the logic of the sizes but failed - big letters for terms with few and many posts and vice versa.
I played with the settings of tagadelic but no response at all - nothing changes, even when I set 1 level.
Any ideas?
Thanks.
Comments
Comment #1
Moscow commentedSeems this patch has done the job: http://drupal.org/node/400806
It is nesessary to edit a function in tagadelic:
function theme_tagadelic_weighted($terms) {
$output = '';
foreach ($terms as $term) {
$weight = $term->weight; // save the Weight - it may be changed by hooks in taxonomy_term_path()
$output .= l($term->name, taxonomy_term_path($term), array('attributes' => array('class' => "tagadelic level$weight", 'rel' => 'tag'))) ." \n";
}
return $output;
}
I have tested on test and working site.
Comment #2
elyobo commentedI have noticed another bug in taxonomy_redirect that possibly causes your problem; I will raise a separate bug to follow it, but essentially the taxonomy_redirect_term_path() resets the weighting calculated by tagadelic by reloading the default weight for the taxonomy term.
You can fix this by changing the top of the taxonomy_redirect_term_path() function from
$t = taxonomy_get_term($term->tid);
$term->name = $t->name;
$term->description = $t->description;
$term->weight = $t->weight;
to be
$t = taxonomy_get_term($term->tid);
if (!isset($term->name)) {
$term->name = $t->name;
}
if (!isset($term->description)) {
$term->description = $t->description;
}
if (!isset($term->weight)) {
$term->weight = $t->weight;
}
Comment #3
agileware commentedThis is a duplicate of #620136: Breaks Tagadelic Weighting, which has now been fixed. A fix was also implemented from the tagadelic end so you should have no trouble now.