I needed to show the number of rows in the view with each specific value next to that value in the filters.

This patch adds an option to the selective filter handler to enable this item count. When this is enabled a modified version of _views_filter_selective_query is used to count the rows in the view with that value in the field and this number is appended to the option in the filter widget (see screenshots below).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mpv’s picture

Here is the patch. First patch applies to latest HEAD and second patch applies to 7.x-1.0-alpha2.

mpv’s picture

Status: Active » Needs review
infojunkie’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)

This module has been deprecated in favour of https://drupal.org/project/views_selective_filters. Please test there and reopen if necessary.