Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Fullcalendar View

Security covered Maintenance fixes only 24,523 sites

Part of the Fullcalendar ecosystem · 7 projects

This module provides a calendar view and editing interface powered by the FullCalendar JavaScript library. It allows you to display events on a calendar with day, week, and month views, and includes features like creating new events by double-clicking, in-place editing, drag-and-drop, and event resizing.

This is a View plugin module that provides a calendar view format powered by FullCalendar JavaScript library

Drupal 12 compatibility

The 7.0.x development branch supports Drupal 12 only and requires PHP 8.5 or later. It is a refactor of the 5.3.x branch with the following changes:

  • FullCalendar 7. Upgraded from FullCalendar 4.4.2 to 7.1.5, along with Moment.js 2.30.1 and RRule 2.8.1.
  • Events load by Ajax. The View still renders the calendar markup, but no longer embeds every event in the page. FullCalendar fetches the events for the visible date range from a separate JSON endpoint. That endpoint runs the same View display, so exposed filters, contextual arguments and access checks still apply, and its responses carry full cache metadata. Views pagers no longer cut events off.
  • Modern Drupal code. Hooks live in classes with #[Hook] attributes, so there is no .module or .theme.inc file. Plugins use PHP attributes instead of annotations, and services are autowired.
  • No jQuery. The module's JavaScript is plain ES6. The JSFrame.js library has been replaced by the native HTML <dialog> element. Drupal core modal and off-canvas dialogs are still supported.
  • Safer drag-and-drop updates. Updating an event requires a logged-in user and Drupal core's X-CSRF-Token header. The update is checked against the View (which must allow updates) and the user's field edit access. It saves to the displayed translation, creates revisions where the bundle requires them, and runs entity validation, including content moderation.
  • Time zone-aware saving. Moved or resized events are saved from ISO 8601 date strings that include a time zone offset. All-day events on date-only fields keep their calendar day.
  • Processor plugins can alter events. FullcalendarViewProcessor plugins use the #[FullcalendarViewProcessor] attribute. A new processEvents() method lets them change Ajax-loaded events, in addition to template variables through process().
  • Off-canvas form mode. The off-canvas "Add event" form uses a fullcalendar_view form mode when the bundle has one enabled. Otherwise it uses the default form.
  • CDN fallback with Subresource Integrity. When the libraries are not hosted under /libraries, they load from jsDelivr with SHA-384 integrity hashes. Add $settings['fullcalendar_view_disable_cdn'] = TRUE; to settings.php to turn the fallback off.

Upgrading from 5.3.x

  • Sites on Drupal 9.2, 10 or 11 should stay on 5.3.x.
  • If you host the libraries locally, the file paths have changed. See the README for the new list.
  • Custom processor plugins must switch from the @FullcalendarViewProcessor annotation to the #[FullcalendarViewProcessor] attribute.
  • Because events load after the page renders, Views header and footer areas only appear when "Display even if view has no result" is enabled.
  • Custom CSS or JavaScript that targets FullCalendar 4 classes or markup will need updating.
  • New setting variable in settings.php file. 7.x introduces setting variable of 'fullcalendar_view_disable_cdn' to prevent loading required assets (JS, CSS) from CDN. More details of this new setting see the README file.

How to use:

  1. Install this module as usual.
  2. Create a view
  3. Select the Full Calendar Display as the view format
  4. Choose the fields for Title, Start date, End date (optional). The description field (showing in the pop-up dialog) is the last field of the fields list.
  5. Format settings (Default Date, field of start date, field of end date).
  6. Other view settings (optional), such as filter criteria, pager.

The Drush command to create a calendar view

drush fullcalendarview:generate --help

drush fcvg

Date field supported by this module

This module supports such fields from core as:

  • timestamp;
  • datetime;
  • date range.

If you use other field type for the 'Start date' or 'End date' field, the calendar view might not be rendered as expected.

More information about how to use this module can be found in the following article.
All You Need to Know about a FullCalendar View Module

Recurring event:

You need a long plain text field to present the RRULE string for recurring logic of an event. For example,

DTSTART:20200302T100000Z
EXDATE:20200309T100000Z
EXDATE:20200311T100000Z
RRULE:FREQ=WEEKLY;UNTIL=20200331T120000Z;INTERVAL=1;WKST=MO;BYDAY=MO,WE

The rule above means a recurring event start from 2020-03-02 to 2020-03-31 and occurs every Monday and Wednesday except 2020-03-09 and 2020-03-11. The RRULE supports excluded time as well.
More information about the RRULE, please see the here

There is an online tool to generate an valid RRULE string.

Then go the view setting page to specify the field as the RRUle field which is under Format:Full Calendar Display->Settings->Recurring Event Settings->RRule Field for recurring events.

The duration field is optional, which specifying the end time of each recurring event instance. The field value should be a string in the format hh:mm:ss.sss, hh:mm:sss or hh:mm. For example, "05:00" signifies 5 hours.

Credit:

This module is powered by Fullcalendar.js

Drupal 9–11

Ask your assistant about Fullcalendar View

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • datetime Drupal core
  • views Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
18
Tracked since
Feb 2023
Latest release
1 week ago
Releases (12 mo)
5 ▲ from 3
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
5.2.1 Stable 9–11 Aug 9, 2024
5.2.0 Stable 9–11 Aug 4, 2024
5.1.14 Stable 9–10 Apr 7, 2024
5.1.13 Stable 9–10 Sep 13, 2023
5.1.12 Stable 9–10 Apr 3, 2023
5.1.11 Stable 9–10 Feb 18, 2023
5.1.10 Stable 8–10 Feb 2, 2023
5.1.9 Stable 8–10 Feb 1, 2023