1

The 'Event Summary' part in the Events Dashboard has a very useful view of a participant status count per event, but it only shows a few events. How can I customize it to show ALL events in the current year?

The 'Manage Events' page does not have this option to see how many people are in what status, per event.

3

The event dashboard shows recent and upcoming events (where start date is 7 days ago OR later). If you want to show all events of current year than you can do it in either one of the two way given below.

  1. Over-ride CRM/Event/BAO/Event.php and edit the where clause at line 357 and 419.

  2. Create an extension and use pageRun() hook to over-ride $eventSummary variable in smarty and also copy paste CRM_Event_BAO_Event::getEventSummary(); into your extension and update the where clause at line 357 and 419. Below code shows how you can use the hook(not tested)

function abc_civicrm_pageRun(&$page) {   
    if ($page->getVar('_name') == 'CRM_Event_Page_DashBoard') {
      // Call to your custom function which is replica of
      // CRM_Event_BAO_Event::getEventSummary(); but change in where clause.
      $eventSummary = EXTENSION_CLASS_FILE_PATH::getEventSummary();
      $enableCart = Civi::settings()->get('enable_cart');
      $eventSummary['tab'] = CRM_Event_Page_ManageEvent::tabs($enableCart);
      $page->assign('eventSummary', $eventSummary);   
   } 
}

PS - #1 is not recommended as it will be difficult to maintain during Incremental upgrade.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.