Add crop variants to textmedia element

This commit is contained in:
Björn Fromme
2018-09-24 15:33:55 +02:00
parent 3085dd466e
commit ae58ff10e1
@@ -169,6 +169,39 @@ call_user_func(function () {
'after:header_layout' 'after:header_layout'
); );
$GLOBALS['TCA']['tt_content']['types']['textmedia']['columnsOverrides']['assets']['config']['overrideChildTca'] = [
'columns' => [
'crop' => [
'config' => [
'cropVariants' => [
'default' => [
'title' => 'Preview',
'allowedAspectRatios' => [
'preview' => [
'title' => 'Standard',
'value' => 1.8,
],
'free' => [
'title' => 'frei',
'value' => 'NaN',
],
],
],
'zoom' => [
'title' => 'Zoom',
'allowedAspectRatios' => [
'free' => [
'title' => 'frei',
'value' => 'NaN',
],
],
],
],
],
],
],
];
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'EP.EpTheme', 'EP.EpTheme',
'SimpleForm', 'SimpleForm',