---
title: "TypoScript"
manual: "Events2"
version: "main"
permalink: "https://docs.typo3.org/permalink/jweiland/events2:typoscript@main"
source: "Configuration/TypoScript/Index.rst"
rendered: "2026-11-23T08:41:16+00:00"
---

# TypoScript {#typoscript}

All following TypoScript configuration consists in `plugin.tx_events2`

## view {#view}

### templateRootPaths {#templaterootpaths}

Default: `EXT:events2/Resources/Private/Templates/`

Example: `plugin.tx_events2.view.templateRootPaths.40 = EXT:site_package/Resources/Private/Templates/`

You can override our Templates with your own SitePackage extension.

<!-- TODO: no Markdown rendering for "versionchanged" -->

events2 does not set the keys 1 of templateRootPaths and
partialRootPaths anymore. The templates of the Management plugin
are located in the regular template folders now, see
Templates of the frontend management.

### partialRootPaths {#partialrootpaths}

Default: `EXT:events2/Resources/Private/Partials/`

Example: `plugin.tx_events2.view.partialRootPaths.40 = EXT:site_package/Resources/Private/Partials/`

You can override our Partials with your own SitePackage extension.

### layoutsRootPaths {#layoutsrootpaths}

Default: `EXT:events2/Resources/Private/Layouts/`

Example: `plugin.tx_events2.view.layoutsRootPaths.40 = EXT:site_package/Resources/Private/Layouts/`

You can override our Layouts with your own SitePackage extension. We prefer to change this value in TS Constants.

## persistence {#persistence}

### storagePid {#storagepid}

Default: empty

Example: `plugin.tx_events2.persistence.storagePid = 12,32,48`

Set this value to a Storage Folder where you have stored the event records.

> [!IMPORTANT]
> If you have stored Organizers and Locations in another Storage Folder, you have to add theses
> PIDs here, too.

> [!TIP]
> If you use creation of events over frontend plugin, new records will be stored in first PID found
> in storagePid. To store record in other storage PIDs you need following configuration
>
> ```typoscript
> plugin.tx_events2.persistence.classes.JWeiland\Events2\Domain\Model\Event.newRecordStoragePid = 34
> plugin.tx_events2.persistence.classes.JWeiland\Events2\Domain\Model\Location.newRecordStoragePid = 543
> ```

## Fall back to TypoScript for empty FlexForm values {#typoscript-ignore-flexform-settings-if-empty}

-   **ignoreFlexFormSettingsIfEmpty**

    -   *Type:* string (comma-separated list)
    -   *Default:* all settings of the FlexForms of events2

    Comma-separated list of settings (without the prefix `settings.`). If
    the FlexForm value of a listed setting is empty (`""` or `"0"`), the
    value of the TypoScript setup is used instead. This is the core
    mechanism of Extbase, see [Feature: #99976 - Introduce ignoreFlexFormSettingsIfEmpty Extbase configuration](https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/12.3/Feature-99976-IntroduceignoreFlexFormSettingsIfEmptyExtbaseConfiguration.html#feature-99976-1676660028). It
    applies to all places, which read the settings with the
    `ConfigurationManager` of Extbase, also to plugin-specific TypoScript
    like `plugin.tx_events2_list.settings` and to the
    categories of the event form of the Management plugin.

    The site set `jweiland/events2` lists all settings of the FlexForms
    of events2: `categories`, `display`, `latest.amountOfRecordsToShow`,
    `listType`, `mainCategories`, `mergeEventsAtSameDay`,
    `mergeRecurringEvents`, `new.selectableCategoriesForNewEvents`,
    `pidOfDetailPage`, `pidOfListPage`, `pidOfLocationPage`,
    `pidOfManagementPage`, `pidOfSearchResults`, `preFilterByOrganizer`
    and `showFilterForOrganizerInFrontend`.

    Add the settings of your own FlexForm fields to the list, if they
    should fall back to TypoScript, too. Remove a setting from the list,
    if its empty FlexForm value should be used:

    **EXT:my_sitepackage/Configuration/Sets/MySite/setup.typoscript**

    ```typoscript
    plugin.tx_events2.ignoreFlexFormSettingsIfEmpty := addToList(mySetting)
    plugin.tx_events2.ignoreFlexFormSettingsIfEmpty := removeFromList(mergeEventsAtSameDay)
    ```

    <!-- TODO: no Markdown rendering for "versionchanged" -->

    Before, events2 used the TypoScript value for each empty FlexForm
    value on its own. Now only the listed settings fall back to
    TypoScript. See Check the fallback of empty FlexForm values.

## settings {#settings}

### rootCategory {#rootcategory}

Default: empty

Example: `plugin.tx_events2.settings.rootCategory = 15`

Only valid for search form and management plugin.

As a TYPO3 Backend User can choose nearly every category from each category tree layer we have added *rootCategory*
as a further restriction to show only direct child categories of *rootCategory*. All selected categories in deeper
category tree will not be visible in Frontend. Else it would break our Search Plugin, where you can select
a category first and afterwards a sub-category.

The *rootCategory* has nothing to do with *rootUid* of ExtensionSettings. *rootUid* reduces the category tree
for users in the TYPO3 backend.

### pidOfDetailPage {#pidofdetailpage}

Default: 0

Example: `plugin.tx_events2.settings.pidOfDetailPage = 123`

Often it is useful to move the detail view onto a separate page for design/layout reasons.

### pidOfSearchResults {#pidofsearchresults}

Default: 0

Example: `plugin.tx_events2.settings.pidOfSearchResults = 213`

If you have plugin for search results on a different page then plugin for search form you can
set the page UID with search result plugin here.

### pidOfLocationPage {#pidoflocationpage}

Default: 0

Example: `plugin.tx_events2.settings.pidOfLocationPage = 132`

Often it is useful to move the location view onto a separate page for design/layout reasons.

### pidOfListPage {#pidoflistpage}

Default: 0

Example: `plugin.tx_events2.settings.pidOfListPage = 231`

If you use one of the above settings, it would be useful to define the *pidOfListPage*, too, so that
a link back to list works like expected.

### pidOfManagementPage {#pidofmanagementpage}

Default: 0

Example: `plugin.tx_events2.settings.pidOfManagementPage = 312`

Page UID with the Management plugin. Set it with the site setting
`events2.pidOfManagementPage`. The links to create and edit events in the
detail view and the links of the mails of the event form point to this
page. See [Set up the frontend management](https://docs.typo3.org/permalink/jweiland/events2:frontend-management-setup@main).

### userGroup {#typoscript-settings-usergroup}

-   **settings.userGroup**

    -   *Type:* int
    -   *Default:* 0

    Example:

    **EXT:my_sitepackage/Configuration/Sets/MySite/setup.typoscript**

    ```typoscript
    plugin.tx_events2.settings.userGroup = 21
    ```

    UID of the frontend user group, which is allowed to create and edit
    events in the frontend. Set it with the site setting
    `events2.form.userGroup` of the site set `jweiland/events2`.

    Members of this group need a related organizer in their frontend user
    record. They see a link to create a new event and, for their own
    events, a link to edit the event in the detail view. Only they can
    create new events, also backend administrators can not. With the
    default value `0` nobody can create events in the frontend.

    The value is read from the TypoScript setup only, for the Management
    plugin and for the event form of EXT:form. A value in
    `plugin.tx_events2_management.settings.userGroup`
    overrides the value of `plugin.tx_events2.settings.userGroup`.
    Values of the FlexForm or of the settings of other plugins are not
    respected. See [Access rules of the frontend management](https://docs.typo3.org/permalink/jweiland/events2:frontend-management-access@main).

    <!-- TODO: no Markdown rendering for "versionchanged" -->

    New events can only be created and listed by members of this user
    group. Before, backend administrators could create events without
    being a member. The value is read from the TypoScript setup only.

### Removed settings {#typoscript-settings-removed}

<!-- TODO: no Markdown rendering for "versionchanged" -->

The settings remainingLetters and new.uploadFolder of the removed
Extbase based event form have been removed together with the site
settings events2.form.remainingLetters and
events2.form.uploadFolder. See Remove obsolete settings.

### new {#new}

Special properties for the event form of the Management plugin, see
[Create and edit events in the frontend](https://docs.typo3.org/permalink/jweiland/events2:frontend-management@main):

#### richText.enable {#typoscript-new-richtext-enable}

<!-- TODO: no Markdown rendering for "versionadded" -->

The value is set by the new site setting
events2.form.richText.enable.

Default: `0`

Example:

**EXT:my_sitepackage/Configuration/Sets/MySite/setup.typoscript**

```typoscript
plugin.tx_events2.settings.new.richText.enable = 1
```

Use a small CKEditor 5 for the rich text elements of the event form based
on EXT:form. Requires EXT:rte_ckeditor. See
[Rich text editor in the frontend form](https://docs.typo3.org/permalink/jweiland/events2:frontend-rich-text-editor@main).

#### richText.elements {#typoscript-new-richtext-elements}

<!-- TODO: no Markdown rendering for "versionadded" -->

The value is set by the new site setting
events2.form.richText.elements.

Default: `detail-description`

Example:

**EXT:my_sitepackage/Configuration/Sets/MySite/setup.typoscript**

```typoscript
plugin.tx_events2.settings.new.richText.elements = detail-description, program
```

Comma-separated identifiers of the form elements which get the rich text
editor. Elements with `dataType: richText` in the form definition get
the editor, too. See [Rich text elements of the event form](https://docs.typo3.org/permalink/jweiland/events2:frontend-rich-text-editor-elements@main).

#### richText.translationsPath {#typoscript-new-richtext-translationspath}

<!-- TODO: no Markdown rendering for "versionadded" -->

The value is set by the new site setting
events2.form.richText.translationsPath.

Default: `EXT:rte_ckeditor/Resources/Public/Contrib/translations/`

Example:

**EXT:my_sitepackage/Configuration/Sets/MySite/setup.typoscript**

```typoscript
plugin.tx_events2.settings.new.richText.translationsPath = EXT:my_sitepackage/Resources/Public/Ckeditor/Translations/
```

Folder with the translations of the user interface of CKEditor 5, see
[Loaded files of the frontend rich text editor](https://docs.typo3.org/permalink/jweiland/events2:frontend-rich-text-editor-assets@main).

### latest {#latest}

Special properties for list latest view:

#### amountOfRecordsToShow {#amountofrecordstoshow}

Default: 7

Example: `plugin.tx_events2.settings.latest.amountOfRecordsToShow = 12`

How many records should be displayed in latest view.

> [!IMPORTANT]
> There is no PageBrowser for latest view! So please be careful setting this value to a very high value.
> It can slow down rendering a lot.

### pageBrowser {#pagebrowser}

Special setting for PageBrowser

#### itemsPerPage {#itemsperpage}

Default: 15

Example: `plugin.tx_events2.settings.pageBrowser.itemsPerPage = 5`

Max amount of records to show for each page in PageBrowser.

### \_LOCAL_LANG {#local-lang}

As an integrator you can override each language key with TypoScript. For frontend events2 uses this file:

`EXT:events2/Resources/Private/Language/locallang.xlf`

Example: `plugin.tx_events2._LOCAL_LANG.de.listMyEvents = Zeige meine Veranstaltungen`
