How to Create Frontend Plugin in TYPO3?

Create a frontend plugin in your custom TYPO3 extension: register the plugin, configure it, override tt_content.php and set up a FlexForm for its settings.

How to Create Frontend Plugin in TYPO3?

To create a frontend plugin in a custom TYPO3 extension, you register the plugin, override tt_content.php and set up a TYPO3 FlexForm for its settings. This tutorial shows each step with the code you need.

Updated 16 November 2026 | T3Planet editorial team

This tutorial shows how to create a frontend plugin in your own TYPO3 extension: register the plugin, configure it, override tt_content.php and set up a FlexForm for its settings. The code follows the current TYPO3 API (v12 and later). On TYPO3 v11 and older, the plugin is registered through list_type and the FlexForm needs a TCEforms wrapper.

Step 1. Register the Plugin in tt_content.php

Create Configuration/TCA/Overrides/tt_content.php in your extension. It registers the plugin, shows the FlexForm field and links the FlexForm file.

<?php
// Configuration/TCA/Overrides/tt_content.php
defined('TYPO3') or die();

use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;

// Register the plugin. The returned value is the plugin signature (CType).
$pluginSignature = ExtensionUtility::registerPlugin(
    'ExtensionName',
    'Pi1',
    'Title'
);

// Show the FlexForm field for this plugin
ExtensionManagementUtility::addToAllTCAtypes(
    'tt_content',
    '--div--;Configuration,pi_flexform',
    $pluginSignature,
    'after:subheader'
);

// Attach the FlexForm file
ExtensionManagementUtility::addPiFlexFormValue(
    '*',
    'FILE:EXT:extension_key/Configuration/FlexForms/pi1_name.xml',
    $pluginSignature
);

Step 2. Configure the Plugin in ext_localconf.php

Tell Extbase which controller actions the plugin may call. Add this to your extension's ext_localconf.php. The first action in the list is the default one.

<?php
// ext_localconf.php
defined('TYPO3') or die();

use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
use Vendor\ExtensionName\Controller\MyController;

ExtensionUtility::configurePlugin(
    'ExtensionName',
    'Pi1',
    [MyController::class => 'list'],
    [],
    ExtensionUtility::PLUGIN_TYPE_PLUGIN
);

Step 3. Create the TYPO3 FlexForm

Create Configuration/FlexForms/pi1_name.xml. From TYPO3 v12 the TCEforms wrapper is no longer needed. Prefix field names with settings. so Extbase hands the values to your controller as settings.

<!-- Configuration/FlexForms/pi1_name.xml -->

<T3DataStructure>
    <sheets>
        <sDEF>
            <ROOT>
                <sheetTitle>Fields</sheetTitle>
                <type>array</type>
                <el>
                    <settings.headline>
                        <label>Headline</label>
                        <config>
                            <type>input</type>
                            <required>1</required>
                        </config>
                    </settings.headline>
                </el>
            </ROOT>
        </sDEF>
    </sheets>
</T3DataStructure>

Step 4. Use the Plugin

Clear all caches, then add a new content element on a page and pick your plugin in the Plugins tab. The FlexForm fields appear in the plugin's configuration tab. In your controller, read them with $this->settings['headline'].

  • A frontend plugin needs a registered plugin, an override of tt_content.php and a FlexForm for its settings.
  • The FlexForm lets editors change plugin options in the backend.
  • Do the work in your own extension, never in the TYPO3 core or third-party extensions.
  • Looking for ready-made plugins? See TYPO3 Extensions.

A part of an extension that outputs content on a page and can be inserted as a content element.

A custom extension, the plugin registration, an override of tt_content.php and a FlexForm file for the settings.

It defines the settings that editors can change in the plugin form in the backend.

In your extension, in Configuration/TCA/Overrides/tt_content.php.

Yes, with TypoScript. See the related tutorial on inserting a plugin via TypoScript.

You May Also Like