Ethsim2
(Ethan )
May 13, 2026, 7:56am
5
I’ve opened a small PR related to this:
main ← Ethsim12:main
closed 06:59AM - 15 May 26 UTC
## Summary
Adds a new `calendar_category_default_view` site setting for categ… ory calendars in the discourse-calendar plugin.
This allows admins to configure the default FullCalendar view used on category calendar pages (e.g. month/week/day/year).
Per-category `defaultView` values in calendar_categories continue to take precedence over the global default setting.
## Changes
- Added new site setting:
- `calendar_category_default_view`
- Reused existing `CalendarUpcomingEventsDefaultView` enum
- Updated CategoryCalendar to use:
- category `defaultView` if present
- otherwise fallback to `calendar_category_default_view`
- Added system spec coverage for precedence behaviour
## Notes
This mirrors the existing `calendar_upcoming_events_default_view` behaviour used for `/upcoming-events`.
It adds a calendar_category_default_view site setting, so category calendars can have a configurable default view rather than relying only on the current fallback behaviour.
It still needs review/approval, so it is not available yet, but it may be relevant to the monthly-view-on-mobile use case here.
2 Likes