Hi,
I am using Better Select as an exposed views filter here: http://downloadabook.net/ebooks
What I would like is to show the count of the nodes belonging to a particular taxonomy term in parenthesis straight after the term so it would look like this:
[] Arts (8)
[] -Arts (4)
[] -Crafts (2)
[] -Design (2)
[] Home and Garden (4)
[] -Home (3)
[] -Garden (1)

Is this possible?

Cheers.

Comments

jwarner’s picture

I'd like to see this as well, but in 6.x!

916Designs’s picture

I did something similar, but for the views driven page title. Maybe you can modify to suit your needs.

In views page display, for path taxonomy/term/% page, in taxonomy tid argument handling code:

<?php

$siblings = db_result(db_query("SELECT COUNT(t.nid) FROM {term_node} t WHERE t.tid=%d",$argument));

  $title = '%1 <span class="count">('.$siblings.')</span>';
  $handler->options['title'] = $title;

?>
john franklin’s picture

Status: Active » Closed (won't fix)

This is a bit outside the scope of Better Select. You should be able to do this with hook_form_alter() or something like that.