(Advanced) Modifying a single Calendar event
Note: This document is intended for developers familiar with PHP. If you have a question, please ask support.
In 1.3.1, Calendar added the
gravityview/calendar/events filter that allows modifying the events array passed to FullCalendar.
Using this filter, you can loop through each event and modify its properties. You can add any properties that are available on the FullCalendar Event Object.
Changing event colors based on their type
In the example below, we'll change the color of the events based on their type. Type is a dropdown field we added to our form:
The final Calendar with different event colors