Expose RRULE string as a Views field
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3535605. -->
Reported by: [joelpittet](https://www.drupal.org/user/160302)
Related to !63 !58
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>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.</p>
<p>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.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<ol>
<li>Add a date_recur field to a content type.</li>
<li>Create a View showing content of that type.</li>
<li>Attempt to add the RRULE value as a field to the View output.</li>
<li>Observe that no field for the RRULE is available—only a filter.</li>
</ol>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>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.</p>
<p>This would allow site builders to:</p>
<ul>
<li>Use the field in date_ical Views to generate valid iCalendar feeds.</li>
<li>Output or export recurrence rules to external systems without additional custom code.</li>
</ul>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<ul>
<li>Add a Views field plugin that outputs the RRULE string for a given date_recur field.</li>
<li>Ensure the Views data definition registers this field correctly.</li>
<li>Add test coverage (functional Views test).</li>
<li>Update documentation if applicable.</li>
</ul>
<h3 id="summary-ui-changes">User interface changes</h3>
<p>Adds a new Views field option for date_recur fields titled something like “Date: Recurring rule” or “Date: RRULE”.</p>
<h3 id="summary-release-notes">Release notes snippet</h3>
<p>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.</p>
<h3 id="checklist">Checklist ✔</h3>
<ul>
<li>[ ✔ ] Changeset meets coding standards and <a href="https://www.drupal.org/docs/8/modules/recurring-dates-field/date-recur-style-guide">project style guide</a>.</li>
<li>[ ❌ ] Changeset has tests</li>
<li>[ ✔ ] Proposal has been discussed externally (Slack/IRC)</li>
</ul>
issue