How to Create Frontend Plugin in TYPO3?

Let's create frontend plugin in your custom TYPO3 extension, Just register frontend plugin and override tt_content.php and setup TYPO3 FlexForm.

Step 1. Overrides tt_content.php

# Create /Configuration/TCA/Overrides/tt_content.php

if (!defined('TYPO3_MODE')) { die('Access denied.'); }

call_user_func(function () {

	# Define extension key
	$_EXTKEY = 'extension_key';

	# Should move code from ext_tables.php to here > To register plugin

	# Prepare plugin's signature
	$extensionName = strtolower(\TYPO3\CMS\Core\Utility\GeneralUtility::underscoredToUpperCamelCase($_EXTKEY)); 
	$pluginName = strtolower('Pi1'); 
	$pluginSignature = $extensionName.'_'.$pluginName; 

	# Add list_type to tt_content
	$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';

	# Add Flexform
		'FILE:EXT:'.$_EXTKEY . '/Configuration/FlexForms/pi1_name.xml'

Step 3. Create TYPO3 FlexForm

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


Post a Comment


Got answer to the question you were looking for?