Skip to main content

Events

Events gives WinnerWare a structured way to manage event content, calendar visibility, and related reminder activity.

Overview​

This module is used when the product needs more than a simple date field. It supports event publishing, recurring schedules, optional central-calendar rollups, and reminder-driven follow-up.

Key Features​

  • Supports event content management.
  • Supports recurring events and event categories.
  • Supports an optional central calendar experience.
  • Supports optional reminder flows for upcoming events.
  • Supports team-aware and visibility-aware event behavior.

Configuration​

Admin display nameFeature IDUse when
EventsCloudSolutions.EventsYou need the main event content experience.
Events Central CalendarCloudSolutions.Events.CentralCalendarYou want a shared calendar that rolls up events in one place.
Event RemindersCloudSolutions.Events.RemindersYou want automated reminder flows for upcoming events.

Events Central Calendar depends on the CrestApps Calendars feature (CrestApps.OrchardCore.Calendars), so enabling it also enables Calendars. The central calendar uses only the FullCalendar scripts and styles that come with Calendars. Calendars also adds its own Calendars admin menu, permissions and calendar pages. The events of the central calendar also show on the Calendars pages. See Events on the CrestApps calendar.

When Orchard Core installs Calendars, it gives the default Calendars permissions to the existing roles: all of them to Administrator, Create calendars to Editor and Use calendars to Authenticated. A user with Use calendars who can open the admin sees the Calendars menu. If only some users must use Calendars, remove Use calendars from the Authenticated role and give it to the roles that need it.

  • The FullCharge setup recipe enables Calendars, and then its Roles step replaces the permissions of Authenticated, so Authenticated does not get Use calendars.
  • On a site that had Events Central Calendar before Calendars existed, Orchard Core loads Calendars as a dependency and does not install it, so no role gets the Calendars permissions.
  • If you enable Events Central Calendar (or Calendars) on the Features page of a site that does not have Calendars, Authenticated gets Use calendars.

Usage​

Use this module when WinnerWare needs a calendar-backed content experience rather than simple informational pages. It works well for schedules, published event programs, and reminder-driven event participation.

Events on the CrestApps calendar​

When Events Central Calendar is on, the events also show on the CrestApps calendar page (Calendars > Calendar, /Admin/calendar) and in the Calendar dashboard widget. The events are not copied. They stay content items, and you add and change them on the central calendar only.

  • The feature creates one calendar with the name Events (calendar type Events). The calendar is public, so every user who may use calendars sees it in the calendar list. You cannot delete it on the Calendars pages, and you cannot add calendar events to it.
  • Each viewer sees the same events as on the central calendar: the events visible to everyone, and the events visible to the viewer, to the viewer's roles or to the viewer's teams. The author of an event always sees it. A user who manages all calendars does not see more events.
  • The events are read-only. Click an event to see its title, description and calendar. The event has no link, and you cannot move it.
  • An event shows in the color of its first category. An event without a category color shows in the color of the Events calendar. The events do not make anybody busy.
  • The times are the wall-clock times of the central calendar, in the time zone of the calendar page. An all-day event shows on its day. A timed event without an end shows for one hour.
  • The first time, the calendar page selects only your personal calendar and the calendars that you can add events to. Select Events in the calendar list one time. The page keeps your selection. A user who manages all calendars has Events selected already.
  • A dashboard widget shows the events when Calendars to show is Every calendar of a type with the type Events, or Chosen calendars with the Events calendar. With The viewer's own calendars, the widget shows the calendars that the calendar page selects first, so only users who manage all calendars see the events there.
  • The schedule views (the schedule of some people, or of everyone) do not show the events.
  • When you turn off Events Central Calendar, the Events calendar is turned off too. Only users who manage all calendars still see it, and nobody can add events to it. When you turn the feature on again, the calendar is turned on again.

Developer Notes​

  • EventsController reads, saves, excludes and deletes events for the central calendar.

  • The module contains migrations for events, recurring events, categories, central calendar support, team behavior, and event notifications.

  • EventsCalendarEventSource is an ICalendarEventSource of CrestApps Calendars. It answers only when a query has a viewer and asks for the Events calendar by id. It gets the events from IEventPresenter (GetEventsAsync for the visibility rules, MapAsync for the times and the repeating events). It converts the wall-clock times to UTC in the time zone of ILocalClock, and it returns them as occurrences with Editable = false and Transparency = Free. The occurrences have the source Events, the event type Event, and the content item id as SourceId.

  • EventsCalendarMigrations creates the Events calendar (source and source id Events). The calendar type is registered with ManagedByCode(), so nobody can create another calendar of the type in the admin. EventsCalendarEventHandler refuses calendar events that are added to the Events calendar or moved onto it. EventsCalendarFeatureEventHandler turns the calendar off before the feature is turned off, and on after the feature is turned on.

  • EventPresenter.GetEventsAsync returns a one-time event when it overlaps the range: it starts in the range, or it starts before the range and ends in or after it.

  • The event notification feature includes a settings editor for notification-part behavior.

  • The central calendar uses FullCalendar 7 from CrestApps. The on-demand-calendar script depends on the fullcalendar-theme script of CrestApps Resources (FullCalendar with its classic theme). The on-demand-calendar style depends on the CrestApps.OrchardCore.Calendars.View style of CrestApps Calendars, which loads the FullCalendar styles and gives the calendar the colors of Bootstrap.

  • FullCalendar 7 reads the colors of an event from color and contrastColor. The server sends backgroundColor and textColor, so on-demand-calendar.js gives each event to toFullCalendarEvent(event) before it adds the event to the calendar.

  • FullCalendar 7 has no stable fc-* class names (it generates names such as fc-classic-9yp). on-demand-calendar.js adds these class names, so module and theme CSS can style the calendar:

    ClassElement
    calendar-viewThe grid of the current view.
    calendar-toolbar, calendar-toolbar-section, calendar-toolbar-titleThe toolbar, each of its three sections, and the title.
    calendar-button, calendar-button-activeA toolbar button, and the button of the current view.
    calendar-day-headerA day name above the grid.
    calendar-day, calendar-day-today, calendar-day-disabledA day cell, today's cell, and a cell outside the current month.
    calendar-day-top, calendar-day-numberThe top of a day cell and its day number.
    calendar-slot-laneA time slot in the week and day views.
    calendar-event, calendar-event-titleAn event and its title.
    calendar-day-grid-event-dot, calendar-day-grid-event-innerThe dot and the content of a timed event in the month grid.
    calendar-list-eventAn event in the list views.