Configuring the calendar

The Opendatasoft platform lets you easily create calendar views from your published datasets.


A calendar built from a dataset containing all events from OpenAgenda

Datasets requirements

For the calendar view, each record of your dataset is a different event. These events must contain a start time, an end time and a title. Which means your dataset must have two datetime fields and a text field for the calendar view to be available.


2 fields set as datetime

Records without titles will be displayed on the calendar as titleless events, but missing either the start or end time will cause the view to simply ignore the record.

Full day events

Though very simple, the "two datetime fields and a text field" requirement forces you to setup full day events as events ~ starting at 12AM on the given day and finishing a second before midnight on the same day (00:00:00 to 23:59:59).


Enabling the calendar view

Once you have configured two of your dataset's fields as datetimes and another field as text, you'll see the calendar tab become available.


Calendar tab unavailable


Calendar tab available

It doesn't mean that your dataset is fully configured though. The view is available but not enabled by default. You'll have to manually enable it.


This checkbox will enable the calendar view

Setting up events' fields

Once the calendar is enabled, you'll need to make sure the events' fields are well configured. You'll see that the first text field has been selected for the title, the first datetime for the start time and the second datetime for the end time. You may have multiple other text/datetime fields in your dataset, select here which one determine the events' properties.

This is also where you'll be able to select the events' color.


Default configuration for my calendar. The event's fields are pre-selected but not correct.


Corrected settings

Setting up the tooltip

In the calendar view, a click on a event will bring forward a tooltip containing more information about the events.

Calendar tooltip

You can configure the tooltip in exactly the same way than for the map or the images.


Once your dataset is correctly setup and published, you can of course share this calendar with anyone having the rights to view the calendar.

To do so, you can always copy/paste the url from your browser's address bar, but you can also use any of the 3 options offered below the calendar itself.

  1. Share the url

The 3 sharing options, with first and foremost the url

  1. Code snippet to embed the view inside any other website

Embed this code into any other page to display your calendar there

  1. Code snippet to include in any of your dashboard or page on the platform.

Copy this code to one your dashboard on the platform