Skip to content

Instantly share code, notes, and snippets.

@spoonerWeb
Created January 12, 2021 11:54
Show Gist options
  • Save spoonerWeb/2eb52be7a856dde068d3d0d79252155b to your computer and use it in GitHub Desktop.
Save spoonerWeb/2eb52be7a856dde068d3d0d79252155b to your computer and use it in GitHub Desktop.
Add PageTS configuration to FlexForm elements
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['formDataGroup']['flexFormSegment'][\TYPO3\CMS\Backend\Form\FormDataProvider\PageTsConfig::class] = [];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['formDataGroup']['flexFormSegment'][\TYPO3\CMS\Backend\Form\FormDataProvider\PageTsConfigMerged::class] = [
'depends' => [
\TYPO3\CMS\Backend\Form\FormDataProvider\PageTsConfig::class,
]
];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['formDataGroup']['flexFormSegment'][\TYPO3\CMS\Backend\Form\FormDataProvider\DatabaseRowDefaultValues::class] = [
'depends' => [
\TYPO3\CMS\Backend\Form\FormDataProvider\PageTsConfigMerged::class
]
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment