As the least intrusive method this could be done as title="23 item(s)" in the link.

Comments

Bèr Kessels’s picture

I want to do this by making the theme function more powerfull. Then you can make the tags appear like:
mytag (123) if you want. Etc.

another really cool thing would be to make tag clouds of image galleries: use thumbnails in several sizes, etc. But that is all about display: about themes.

arsart’s picture

Version: 4.6.x-1.x-dev » 4.7.x-1.x-dev

Revealing old feature request. Can we print the number of nodes near tags for 4.7.0? Would be very useful feature.

Thanks in advance!

Bèr Kessels’s picture

Version: 4.7.x-1.x-dev » master
Status: Active » Fixed

this is now possible in theme_tagadelic_weighted(), please use HEAD version of tagadelic, wich runs fine on drupal 4.7

arsart’s picture

emm... sorry can't get any reference in a code to nodes count per tag.
Can you please show the way how to print the number of nodes in a tag?

Bèr Kessels’s picture

Category: feature » support

Something in line of

function myredtheme_tagadelic_weighted($terms) {
  foreach ($terms as $term) {
    $output .= l($term->name . '( '. $term->count .' )' , taxonomy_term_path($term), array('class'=>"tagadelic level$term->weight")) ." \n";
  }
  return $output;
}

If this works, could you do me a favour back and post a small manual or tiny howto under http://drupal.org/handbook/modules/tagadelic ?

arsart’s picture

"$term->count" prints nothing - empty data:(

Bèr Kessels’s picture

... on a CVS?

try dprint_r and check all available variables. $tag->number_of_posts is one, for example.

Anonymous’s picture

Status: Fixed » Closed (fixed)
brewreview.info’s picture

Version: master » 5.x-1.x-dev
Status: Closed (fixed) » Active

Has anyone gotten this to work with version 5.x?

If so, how? And what file(s) would need to be modified, and where?

I've been trying to mash-up the excellent sorting capabilities (and variable font settings, tks to it's own css file) with the node counting capability of this snippet: http://drupal.org/node/192457 (which does indeed display node counts, but looks like %#&*).

Any ideas of where I need to go and/or what I need to do?

Cheers!
//TB

Bèr Kessels’s picture

Status: Active » Closed (works as designed)

closing this issue. IT is by design: we don't show the count. You can override this in yoru theme if you wish.