I have 131 events to display. I have the block settings set to display 200 max events. Only 25 events are displaying. Any suggestions on how to fix this?

-backdrifting

Comments

JuliaKM’s picture

I'm not sure what is causing this problem. I'm no longer adding new features to the module as I no longer use CiviCRM regularly. However, if you'd like to submit a patch, please do so and I'd be happy to test it.

sadashiv’s picture

The api used in the module is responsible for this as civicrm_event_search fetches 25 max results if not specified refer http://civiapi.idealworld.org/api/civicrm/api--v2--Event.php/function/ci...

Simply apply this change

@@ -52,7 +52,7 @@ function generate_civicrm_eventblock() {
module_load_include('php', 'civicrm', '../api/v2/Event');
module_load_include('php', 'civicrm', '../CRM/Core/OptionGroup');

- $params = array('is_public' => 1, 'is_active' => 1);
+ $params = array('is_public' => 1, 'is_active' => 1, return.max_results=1000); //1000 as max number of events
$my_events = civicrm_event_search($params);
$event_types = CRM_Core_OptionGroup::values('event_type');