Creating a daily event that has more than one instance per day

Created on 6 February 2023, about 2 years ago
Updated 6 April 2023, almost 2 years ago

Problem/Motivation

I'm working on a project for a historic site that has an event that recurs 3 times daily from Thursday through Sunday from late may through early September. I can figure out how to create a single event for each day, but it'd be nice to be able to add multiple times per day. Is this possible? It seems like a new widget may be the solution.

Proposed resolution

If this isn't possible with the project as is, add a widget that combines the consecutive event with a change to the exclusions for days of the week instead of explicit dates. Or an added field to the Consecutive recurring widget that includes days of the week to include.

If this is a resolution, what are some ways to build a widget that might accommodate this? What are some of the process features one would need to work with to help with the generation of events. It seems that during the loop for creating events, a process of identifying if an event instance falls on an excluded day of the week (or does not fall on an included day of the week) that it be skipped.

πŸ’¬ Support request
Status

Active

Version

2.0

Component

Recurring Events (Main module)

Created by

πŸ‡ΊπŸ‡ΈUnited States Chris Dart

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Chris Dart
  • πŸ‡ΊπŸ‡ΈUnited States owenbush Denver, CO

    Hi, thanks for the issue. At this time you are not able to have more than one event per day AND more than one day. You can do either - consecutive events are for more than one a day, and daily are for more than one day.

    So you're right that you would need a new field type, and widget. There are several examples of these already in the module, but its not a particularly simple task. The simplest solution I can think of at this time is having 3 weekly events - one for each time.

    As you saw, there are processes in place to handle excluded and included dates, but you shouldn't need to worry about that as those should be handled for you. You will just need to make sure you implement RecurringEventsFieldTypeInterface to ensure that your field is picked up as a recurrence type.

Production build 0.71.5 2024