Skip to content

When an event is saved

Sends a notification when a Solspace Calendar Event is saved. Covers both new events and updates to existing events, including changes to recurrence rules.

Requires Solspace Calendar

Only available when the Solspace Calendar plugin is installed.

Calendar Filters

Choose which Solspace Calendars should fire this notification. Only events on the selected calendars will trigger it.

Selection is required

Check at least one calendar, or the notification won't fire.

Field Conditions

Field conditions restrict the notification based on the element's content, using Craft's native conditions framework. Build a rule set against the element's attributes and field values, and the notification will be sent only when every rule matches.

Must match all conditions

The condition builder evaluates every rule with AND semantics, so each rule must pass for the notification to be sent.

The "has changed" operator

Field rules now include an additional "has changed" operator, alongside the existing standard options.

When the element is saved, the "has changed" operator checks whether the field's value has changed during the save, (regardless of what the new value is). The notification will only be sent when the specified field's value has changed.

Twig variables

The object variable (and its event alias) is the saved Calendar Event.

twig
"{{ event.title }}" is scheduled for {{ event.startDate|date('F j, Y g:i a') }}.

Examples

Announce a new event

twig
A new event has been scheduled.

- Title: {{ event.title }}
- Calendar: {{ event.calendar.name }}
- Starts: {{ event.startDate|date('F j, Y g:i a') }}
- Ends: {{ event.endDate|date('F j, Y g:i a') }}

Skip recurring-event updates

twig
{% if event.rrule %}
    {% skipMessage "Recurring event updates not announced." %}
{% endif %}

Saved: {{ event.title }}