Templates
The default templates are plain HTML without styling. They show all fields and serve as a starting point for your own templates.
Overriding templates
Add your own paths with a higher key. Files that are not found in your path are taken from t3events:
plugin.tx_t3events.view {
templateRootPaths.20 = EXT:my_sitepackage/Resources/Private/Templates/Events/
partialRootPaths.20 = EXT:my_sitepackage/Resources/Private/Partials/Events/
layoutRootPaths.20 = EXT:my_sitepackage/Resources/Private/Layouts/Events/
}
Copied!
Templates and variables
| Template | Action | Variables |
|---|---|---|
Event/ | event list | events, demand, settings, overwrite,
data (the content element), paginator, pagination |
Event/ | event detail | event, settings |
Performance/ | performance list | performances, demand, settings, overwrite,
data, variables added by listeners of
Performance |
Performance/ | performance detail | performance, settings |
Main partials:
Event/List Item. html - An event in the list: image, crucial status, headline with link to the detail page, subtitle, number of locations and date range.
Event/Single Item. html - The detail view of an event with its performances (
Performance/), location, organizer and related events.Item Performance/,List Item. html Performance/List Item Short. html - A performance in the list and in the short list (template layout
2). Performance/Properties. html - The fields of a performance in its detail view.
Common/Filter. html - Filter form (search term, genre, venue, event type), see Sorting and filtering by visitors.
Data attributes
The default templates mark the rendered records with data attributes. Tests and JavaScript can rely on them instead of the markup:
| Attribute | Element |
|---|---|
data- | an event in the event list |
data- | the event detail view |
data-,
data- | a performance in the performance list and its event |
data- | the performance detail view |
data- | the sort form of the event list |
ViewHelpers
The templates use the ViewHelpers of t3events with the namespace
{namespace ts=DWenzel\, see
ViewHelpers.