Hi everyone!, I have a small issue that I can’t seem to resolve. I have a forum (laguaridaretro.com) where, thanks to the “Right Sidebar Blocks” component, I can customize the right column of the forum. The thing is, I have the upcoming events displayed there, as you can see in the screenshot below. These events appear on the forum’s homepage and in the Events category, but when I enter another category on the forum, it simply shows up empty, as if no events were published.
I would like all events to appear in all categories, not just those two. Is that possible?
By default, the event list only returns the events for the current category. There is a value transformer (discourse-calendar-upcoming-events-show-cross-category) that you can use to change that.
You create a new theme component (I think it’s better when it’s loaded early, so use something like “aaa all events in each category” for the name).
I thought it might be confusing, because this has global consequences. I am not sure everyone would immediately understand that changing the parameter for the event list in the right sidebar blocks will also affect event lists outside of the theme component. That’s why I would keep it separate.
Interesting! I hadn’t appreciated it would do that either. Of note, it shows events in Messages in the calendar too. For me this is a major bonus, and I prefer this to the default behaviour.
I also hide the calendar in Events categories already as I find it pretty messy / ugly; having the right sidebar block active in these is much nicer.