Ticket #9 (closed enhancement: fixed)
Ini counts: count by filter
| Reported by: | ed | Owned by: | jim |
|---|---|---|---|
| Priority: | critical | Milestone: | |
| Component: | Drupal modules & settings | Keywords: | |
| Cc: | Estimated Number of Hours: | 0.0 | |
| Add Hours to Ticket: | 0 | Billable?: | yes |
| Total Hours: | 0.2 |
Description
when users filter by country and the listing is produced, include the number of inis in that country.
Change History
comment:1 Changed 7 years ago by ed
- Priority changed from minor to major
- Summary changed from Ini count: count by country to Ini counts: count by filter
comment:2 Changed 7 years ago by ed
Please add this feature to *all* profile searches/filters - people/initiatives/projects
comment:3 Changed 6 years ago by jim
- Estimated Number of Hours set to 0.0
- Billable? unset
Initiatives done, add variant of:
<?php
// Add results count - using different var names to avoid scoping issues
$my_view = views_get_current_view();
$my_total = $my_view->total_rows;
print '<p><strong>' . t('%count initiatives matched your search criteria.', array('%count' => $my_total) ) .'</strong></p>';
?>
Note: See
TracTickets for help on using
tickets.

when a user searches or filters and a list is presented, include the numbers of inis in the view: