Created
July 25, 2016 20:59
-
-
Save keithmancuso/99d97755a867db691e708d4410a948cf to your computer and use it in GitHub Desktop.
events with repeating?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% set classIds = craft.calendar.events({ loadOccurrences: false, dateRangeStart: today }).relatedTo( category ).ids() %} | |
{% for id in classIds %} | |
{% set event = craft.calendar.event(id, { | |
occurrenceRangeStart: "today", | |
occurrenceRangeEnd: "6 months", | |
occurrenceLimit: 1 | |
}) %} | |
{% if event.occurrenceCount > 0 or event.startDate > today %} | |
{{ event.title }} | |
{% endif %} | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment