Expose RRULE string as a Views field

Created on 11 July 2025, 20 days ago

Problem/Motivation

The RRULE string stored in a date_recur field is currently not exposed to Views as a field. This makes it difficult to generate machine-readable feeds such as iCal (via the date_ical row plugin) or to otherwise export recurrence data for consumption by external tools.

While the RRULE is available as a Views filter (Date: recurring rule), it is not available as a Views field for output. Site builders and developers have no straightforward way to include the raw RRULE in feeds or templates without writing custom code.

Steps to reproduce

  1. Add a date_recur field to a content type.
  2. Create a View showing content of that type.
  3. Attempt to add the RRULE value as a field to the View output.
  4. Observe that no field for the RRULE is available—only a filter.

Proposed resolution

Expose the raw RRULE string of a date_recur field as a Views field, similar to how the date or date range values are exposed.

This would allow site builders to:

  • Use the field in date_ical Views to generate valid iCalendar feeds.
  • Output or export recurrence rules to external systems without additional custom code.

Remaining tasks

  • Add a Views field plugin that outputs the RRULE string for a given date_recur field.
  • Ensure the Views data definition registers this field correctly.
  • Add test coverage (functional Views test).
  • Update documentation if applicable.

User interface changes

Adds a new Views field option for date_recur fields titled something like “Date: Recurring rule” or “Date: RRULE”.

Release notes snippet

The RRULE string from a date_recur field is now available as a field in Views. This allows it to be included in machine-readable feeds such as iCal exports via the date_ical module.

Checklist ✔

  • [ ❌ ] Changeset meets coding standards and project style guide .
  • [ ❌ ] Changeset has tests
  • [ ❌ ] Proposal has been discussed externally (Slack/IRC)
Feature request
Status

Active

Version

3.8

Component

Code

Created by

🇨🇦Canada joelpittet Vancouver

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024