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

spython’s picture

I 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.

chandrabhan’s picture

Here 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.

Bèr Kessels’s picture

Status: Active » Closed (works as designed)

The data is already there. You only need to print it in your theme.

That is the place for such changes.

AntiNSA’s picture

Can you show me how to do this?