Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (19 sloc) 671 Bytes
title type order is_code
calendars.calendars
guide
7
true

You can use the craft.calendars.calendars tag to retrieve a list of your calendars.

It returns an array of CalendarModel objects.

Querying Calendars

{% for c in craft.calendars.calendars %}
    <h1>{{ c.name }}</h1>
    <p>Handle: {{ c.handle }}</p>
{% endfor %}

Parameters

The calendars.calendars tag doesn't need any parameters, but accepts id, handle, and name parameters to filter the calendars list.

You can use these parameters just like querying for other elements in Craft:

{% set calendars = craft.calendars.calendars.handle(['a', 'b']) %}