Events
Event (%%EVENT_DETAILS%% )
{{ event.details(type, start_dt_after, start_date_before, range, same_state, official, template) }}
This tag returns the value of the template (using non-Twig templating syntax documented in the personalization tag builder). It also stores the full event object on event[0]
, which may be more flexible.
Example:
{% set ev = event.details(1, "1/25/2011", "2/25/2011", 250, 0, 0,'miles','{title}') %}
How are you? You should come to our event, {{ev}}
When: {{ event[0].start_date }}
Where:
{{ event[0].venue_name }}
{{ event[0].venue_addr1 }}
{{ event[0].venue_addr2 }}
{{ event[0].venue_city }}, {{ event[0].venue_state }} {{ event[0].venue_zip }}
Attribute | Example |
---|---|
id | 1 |
id_obfuscated | rtw |
description | Come eat turkey at my house. |
type | |
type_id | 1 |
venue_name | My House |
venue_addr1 | 123 Main St |
venue_addr2 | |
venue_city | New York |
venue_state | NY |
venue_zip | 11011 |
start_date | Tue 25 Jan 2011 |
start_day | Tuesday |
start_day_ordinal | 25ᵗʰ |
start_month | January |
start_year | 2011 |
start_time | 7:00 am EST |
duration | 1 hr |
detail_url | http://example.com/page/event/detail/rtw |
formatted_string | Thanksgiving dinner |
Updated less than a minute ago