Displaying Event Participant Data
Data Access via Twig
Example
{# Check if the line item contains participant data #}
{% if nestedItem.extensions.eventParticipant is defined %}
{% set eventParticipant = nestedItem.extensions.eventParticipant %}
<div class="event-participant-details">
<strong>Participant:</strong> {{ eventParticipant.firstName }} {{ eventParticipant.lastName }}<br />
<strong>Email:</strong> {{ eventParticipant.email }}<br />
{# Access nested event details if available #}
{% if eventParticipant.event is defined %}
<strong>Event:</strong> {{ eventParticipant.event.translated.name }}<br />
<strong>Date:</strong>
{{ eventParticipant.event.startDate|format_date('short', locale='en-GB') }} -
{{ eventParticipant.event.endDate|format_date('short', locale='en-GB') }}<br />
{% if eventParticipant.event.eventLocation is defined %}
<strong>Location:</strong> {{ eventParticipant.event.eventLocation.translated.name }}
{% endif %}
{% endif %}
</div>
{% endif %}Key Data Points
Last updated
Was this helpful?