Add crop variants to textmedia element
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user