feat: just allow 16:9 cropping at news
This commit is contained in:
@@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
defined('TYPO3') or die('Access denied.');
|
||||||
|
|
||||||
|
// Restrict cropping aspect ratio for images in news entries to 16:9
|
||||||
|
$GLOBALS['TCA']['tx_news_domain_model_news']['columns']['fal_media']['config']['overrideChildTca']['columns']['crop']['config'] = [
|
||||||
|
'cropVariants' => [
|
||||||
|
'default' => [
|
||||||
|
'title' => 'Default',
|
||||||
|
'allowedAspectRatios' => [
|
||||||
|
'16-9' => [
|
||||||
|
'title' => '16:9',
|
||||||
|
'value' => 16 / 9
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'selectedRatio' => '16-9',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
];
|
||||||
Reference in New Issue
Block a user