Not sure whether it has been already requested. Will it be possible to show count of the individual terms along side the terms in block and page?
Not sure whether it has been already requested. Will it be possible to show count of the individual terms along side the terms in block and page?
Comments
Comment #1
spython commentedI am very interested in this too, there is a dirty workaround with blocks - http://drupal.org/node/192457 but then you give up all other tagadelic features.
Comment #2
chandrabhan commentedHere is the way I have achieved this.
Put the following in your theme's template.php
function phptemplate_tagadelic_weighted($terms) {
$output = '';
foreach ($terms as $term) {
$output .= l($term->name . '('.$term->number_of_posts.')', taxonomy_term_path($term), array('attributes' => array('class' => "tagadelic level$term->weight", 'rel' => 'tag'))) ." \n";
}
return $output;
}
Note that the count text would be part of the link. If you dont want that then you can create your own link. You have all the required information available in the above function.
Comment #3
Bèr Kessels commentedThe data is already there. You only need to print it in your theme.
That is the place for such changes.
Comment #4
AntiNSA commentedCan you show me how to do this?