When you're on a single event template, or looping through events using craft.events.events()
, you're actually working with a Events_EventModel
. This in turn extends Craft's Element Criteria Model (opens new window) object.
Outputting a Events_EventModel
object in your template without attaching a property or method will return the event’s name:
<h1>{{ event }}</h1>
Event Models have the following attributes and methods:
The events name/title.
The id of the event.
The event's event type.
The event's event type id.
live, pending or expired based on startDate and endDate dates. Pending are events with a future startDate date.
true or false
true or false
A list of event's Ticket Models
The url to edit this event.
The url format of this event
Ether true or false if the event is an all day event and no specific start and end time is set.
The total capacity of tickets available for this event.
The events start date
The events end date