This document is for an older version of
Calendar
.
View latest version →
Templating
calendar.calendar function
The calendar.calendar template function fetches a single calendar by its unique ID.
Parameters
Usage in Templates
{% set calendar = craft.calendar.calendar({
handle: "holidays"
}) %}
{% if calendar %}
<div style="color: {{ calendar.color }};">
{{ calendar.name }}
</div>
{% endif %}
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9