Working with events 

Create an event 

Create an Event content element on a folder or content page. Maintain the regular header, subheader, body text and media as required, then use the Event tab for the agenda-specific data. A folder is useful for keeping event content separate from presentation pages.

TYPO3 backend Event tab with a date, title, location, price and occurrence limit

The Event tab with one inline date and additional event data.

Event fields 

Backend label Purpose and effect Default Notes
Dates Inline date definitions used to create occurrences. Empty Up to 100 entries; at least one valid date is needed for output.
Exceptions Date ranges removed from generated occurrences. Empty Up to 100 entries.
Title Display title used in the supplied list. Empty Stored on the event content element.
Location Default location for occurrences. Empty A date-level location overrides it when non-empty.
Price Default decimal price. 0 A non-zero date-level price overrides it.
Show only next ... events Limits occurrences generated from this event content element. 0 Range 0 to 2000; 0 disables the limit.

Date fields 

From is required. To is optional. When an end time is earlier than the start time, an occurrence ends on the following day; an explicit later date represents a longer range.

Repeat defaults to no repetition. Selecting Every reveals `Repeat all`` (integer ``1`` to ``365``, default ``1``) and ``Interval` with the values day, week, month and year. Weekday switches are available for weekly, monthly and yearly rules; Last day of applies to monthly rules. All weekday and last-day switches default to off.

Event lasting several days accepts up to 100 inline individual ranges. Date-level Location and Price default to empty and 0. Cancelled and Full both default to off and add corresponding CSS classes in the supplied list output.

Exceptions and individual days 

An exception requires Date from and optionally accepts Date to. The range suppresses matching generated occurrences. Individual entries likewise require Date from and optionally accept Date to; they describe the separate days associated with a multi-day event.

Render an agenda 

Create a Maagit Events content element on the presentation page. Select List of next events for a table with detail links, `Detail list of next events`` to render each event's complete content, or ``Detail view of event for a dedicated target page. Configure the remaining options as described in :ref:the plugin settings <configuration-plugin>`.

Detail view 

Frontend event detail showing a back link, title and event content

A detail request opened from the verified agenda list.

The detail template renders the original event content element. Date, location and price are visible only when the project's content template emits them; the supplied EventContent.html primarily renders the inherited header, body text and media.

Content placeholders 

Enter these markers in the event's Content field in the TYPO3 backend. The extension replaces them when rendering the event content in the frontend.

Marker Output
###TITLE### Event title.
###DATEFROM### Start date of the occurrence.
###DATETO### End date of the occurrence.
###DATERANGE### Formatted date and time range.
###DATELIST### Start dates returned for the event, sorted chronologically and separated by / .
###LOCATION### Location of the occurrence as text.
###PRICE### Numeric price.
###CANCELLED### 1 if the occurrence is cancelled.
###FULL### 1 if the occurrence is fully booked.
###ID### Internal event ID used in the detail link.
###UID### TYPO3 UID of the event content record.

Use an ICU date pattern in square brackets. The default is dd.MM.yyyy with locale de_CH. Specify a locale with locale|pattern, for example ###DATELIST[de_CH|EEE, dd.MM.]###. For prices, use locale|currency.

Other values are available through model getters, for example ###HEADER### and ###SUBHEADER### for the TYPO3 heading and subheading. Linked records use zero-based indexes. ###LOCATIONS.0.LOCATION### gives the first linked location's name and ###LOCATIONS.0.DATELIST### lists its dates. Unknown markers, invalid paths and status markers with a false value remain visible.

###TITLE###
Date: ###DATEFROM[dd.MM.yyyy]###
Time: ###DATEFROM[HH:mm]###–###DATETO[HH:mm]###
Location: ###LOCATION###
Price: ###PRICE[de_CH|CHF]###
Copied!