Skip to content

Instantly share code, notes, and snippets.

@lindseybradford
Created April 19, 2016 18:35
Show Gist options
  • Save lindseybradford/fe4be971e32cbbf68d081c91dbde21d5 to your computer and use it in GitHub Desktop.
Save lindseybradford/fe4be971e32cbbf68d081c91dbde21d5 to your computer and use it in GitHub Desktop.
{# This #}
{% set events = craft.venti.events().id(2447) %}
{% for event in events.first() %}
{{event}}
{% endfor %}
<br>
<br>
{% for event in events.last() %}
{{event.summary}}
{% endfor %}
{# Outputs this #}
2447 1 0 en_us 1 may-event ibcEvents/may-event 2016-04-18 2016-04-19 355 2447 2016-04-11 venti.startDate asc 2016-04-11 1 1 FREQ=WEEKLY;BYDAY=TU,TH;UNTIL=20160606T230000Z;WKST=MO Weekly on Tuesday and Thursday until June 6, 2016
2447 1 0 en_us 1 may-event ibcEvents/may-event 2016-04-18 2016-04-19 1144 2447 2016-06-02 venti.startDate asc 2016-06-02 1 1 FREQ=WEEKLY;BYDAY=TU,TH;UNTIL=20160606T230000Z;WKST=MO Weekly on Tuesday and Thursday until June 6, 2016 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment