Installation
You can install the module using Composer (recommended) or by manually placing the files and libraries on your server.
Composer Installation
This is the standard and recommended way to install Drupal modules.
-
Require the module with Composer:
-
(Optional) To have Composer download the required JavaScript libraries for you, you can use the
zodiacmedia/drupal-libraries-installerplugin.- Ensure that your root
composer.jsonis configured to place packages of typedrupal-libraryinto your/librariesdirectory. - Add the installer plugin dependency:
- Add the following to the
extrasection of yourcomposer.jsonfile to tell the plugin to manage this module's libraries: - Run
composer installto download and place the libraries correctly.
- Ensure that your root
Manual Installation
If you are not using Composer, you must download and place the module and its required JavaScript libraries manually.
- Download and extract the FullCalendar Block module into your
/modulesdirectory. - If you want to host the JavaScript libraries locally, download and extract the following packages into your Drupal root directory as specified in the table.
| URL | Destination |
|---|---|
| https://registry.npmjs.org/fullcalendar/-/fullcalendar-5.11.4.tgz | /libraries/drupal-fullcalendar |
| https://registry.npmjs.org/dompurify/-/dompurify-2.4.5.tgz | /libraries/DOMPurify |
| https://registry.npmjs.org/moment/-/moment-2.29.4.tgz | /libraries/moment |
| https://registry.npmjs.org/rrule/-/rrule-2.7.1.tgz | /libraries/rrule |
| https://registry.npmjs.org/@fullcalendar/rrule/-/rrule-5.11.4.tgz | /libraries/fullcalendar-rrule |
| https://registry.npmjs.org/@fullcalendar/moment/-/moment-5.11.4.tgz | /libraries/fullcalendar-moment |
Note: If the required external libraries are not available locally, they will be loaded from a CDN (usually https://unpkg.com) automatically.
Security Note for Manual Installation
The RRule library zip file contains a demo folder (rrule/dist/esm/demo) which includes an index.html file. For security reasons (see PSA-2011-002), you should delete this demo folder from your server after manual installation. This step is not necessary if you use Composer or load libraries from the CDN.