Have the upcoming-events block respect the subcategory filter when in Category lists

When the upcoming-events block is displayed in a Category list, it doesn’t respect the subcategory filter.

It can be configured via a parameter in the TC (per site) to either display all subcategories or none (i.e. boolean) - see @RGJ’s post which follows.

Desired behaviour: if subcategory topics are visible in a Category list, then events posted in that subcategory should also appear in the upcoming-events block of the Category list.

Explanation

This is a really nice integration! I love how it surfaces a bite-sized view of the upcoming events for a site.

It works very well on the discovery routes (e.g. /latest, /top), showing all upcoming events as specified, from all categories and their subcategories.

When displayed on a Category list, it is effectively locked on the configured parameter. While this is often okay, it is quite incongruent when the Category list excludes subcats while the upcoming events includes them (and vice-versa).

1 Like

Did you add includeSubcategories - true as a parameter?
That will show events from subcategories (even when you filter on “no subcategories”)

2 Likes

No I didn’t - perhaps because that parameter isn’t documented anywhere!!! And it works! Thank you.

It would be nice if it respected the subcat filter of the Category list, but that might be tricky eh? I’ve edited this Topic to narrow down on that specific.

I’ve also added it to the Right Sidebar Blocks table now so others don’t trip up on this.

Any idea if it can be used with other blocks?

Thanks for the report @nathank :+1: It’ll be fixed by

3 Likes

This topic was automatically closed after 2 days. New replies are no longer allowed.