Ticket #9 (closed enhancement: fixed)

Opened 7 years ago

Last modified 6 years ago

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

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

  1. add counts - on 'all' "there are xxx initiatives registered on our system";
  2. when filter on country "there are xxx initiatives in countryname';
  3. filter on theme "there are xxx intiatives interested in themename";
  4. filter on community type "there are xxx initiatives in the communitytype community"; 5. filter on status "there are xxx initiatives with statusname status"

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>';
?>

comment:4 Changed 6 years ago by ed

  • Priority changed from major to critical

putting to critical so it gets done - as it's only a weener job and will please many many people

comment:5 Changed 6 years ago by jim

  • Add Hours to Ticket changed from 0.0 to 0.2
  • Status changed from new to closed
  • Total Hours changed from 0 to 0.2
  • Resolution set to fixed
  • Billable? set
Note: See TracTickets for help on using tickets.