Calendar

by Gisle Hannemyr

The Calendar project provides bridge modules to integrate a Drupal website with the Calendar service.

Table of contents

Drupal projects discussed in this chapter: Calendar.

Introduction

The Calendar module will display any Views date field in calendar formats date fields, node created or updated dates, etc.

You may switch between year, month, and day views. Back and next navigation is provided for all views.

Lots of the functionality comes from the Date module.

Installing and enabling the module

Install as you would normally install a contributed Drupal module. See: Installing modules in the community documentation for further information.

Until there is a stable release, you need to change this line in the project's composer.json:

    "minimum-stability": "stable",

to:

    "minimum-stability": "alpha",

Install with composer:

$ composer require 'drupal/calendar:^1.0@alpha'
$ drush en calendar

Tutorial: OSTraining.

Configuration

[TBA]

Creating a simple calendar

First create a content type "Appointment":

After enabling the module and clearing the cache, a link "+ add from template" should appear at the top the Views overview page. This should list the different options to create a calendar based on core fields (created and updated) or any other custom defined date field.

Final word

Due to limitations of the core DateTime module these are not yet implemented in core. See the linked issues for details:


Last update: 2022-03-30 [gh].