Experience slot
Renders experience and date selectors, returning an Experience Slot object.
Renders two or three inputs. The creator first selects an experience, then a date from that experience's available dates. If the experience has start times, they can also choose a specific time for the selected date.
Returns: An Experience Slot object.
Example
---
attributes:
featured_slot:
type: experience_slot
label: Featured experience slot
---{% if featured_slot %}
<p>
{{ featured_slot.start_on | date: "%-d %B %Y" }}
{{ featured_slot.start_time | date: " · %H:%M" }}
</p>
{% endif %}Usage
Experience slots are useful for highlighting a specific upcoming date of an experience:
{% if featured_slot %}
<div class="featured-slot">
<h3>{{ featured_slot.experience.name }}</h3>
<time>{{ featured_slot.start_on | date: "%A %-d %B %Y" }}</time>
{% if featured_slot.start_time %}
<span>{{ featured_slot.start_time | date: "%H:%M" }}</span>
{% endif %}
</div>
{% endif %}