Provides the ability to access and render Events.

The events object allows you to select a specific event, or all events.

{% assign number_of_days_in_advance = number_of_days_in_advance | default: 60 %}

<div class="content-panel panel panel-default">
<div class="panel-heading">
{% assign sitemarker = sitemarkers["Events"] %}
{% if sitemarker %}
<a class="pull-right" href="{{ sitemarker.url | h }}">{{ snippets['Home All Events Link Text'] | default: 'All Events' | h }}</a>
{% endif %}
<h4>
<span class="fa fa-calendar" aria-hidden="true"></span>&nbsp;
{{ snippets["Home Upcoming Events Heading"] | default: "Upcoming Events" | h }}
</h4>
</div>
<ul class="list-group">
{% assign today = now | date: 'yyyy-MM-dd' %}
{% assign advance_date = now | date_add_days: number_of_days_in_advance | date: 'yyyy-MM-dd' %}
{% for occurrence in events.occurrences.from[today].to[advance_date] %}
{% assign event = occurrence.event %}
<li class="vevent list-group-item">
<h4 class="list-group-item-heading">
<a class="url summary" href="{{ occurrence.url | h }}">{{ event.adx_name | h }}</a>
</h4>
<div class="content-metadata">
<abbr class="dtstart" title="">{{ occurrence.start_time }}</abbr> &ndash; <abbr class="dtend" title="">{{ occurrence.end_time }}</abbr>
</div>
<div class="list-group-item-text">
{% editable event 'adx_summary' %}
</div>
</li>
{% endfor %}
</ul>
</div>

events Object

The blogs object allows you to access any specific blog in the portal, or to access all blog posts in the portal (regardless of the blog)

Attributes

occurances

Returns a eventoccurances object containing all event occurances in the portal

[event name or id]

You can access any event by its Name or Id properties.

{% assign event = events["Event Name"] %}

{% assign event = events["da8b8a92-2ee6-476f-8a21-782b047ff460"] %}

event Object

The event object allows you to work with a single event, allowing you to access the schedules and occurances for that event

Attributes

occurrences

Returns a eventoccurrences object containing all occurances for the event.

name

The Name of the Event.

url

The URL of the Event.

eventoccurrences Object

The eventoccurrences object allows you to access a collection of event occurrences objects.  You can order the event occurrences and specify a date range for the occurances to retrieve, and achieve pagination as well using liquid filters

{% assign occurances = event.occurrences.from[today].to[advance_date] %}

note that

{% assign occurances = event.occurrences.min[today].max[advance_date] %}

is also possible

Attributes

all

Returns all eventoccurance objects in the collection.

A Single Event Occurence.

Attributes

url

The URL of the occurrence.

is_all_day_event

Is this an all day event?

start_time

The Start time for the Event Occurrance

end_time

The End time for the Event Occurrance