feat: just allow 16:9 cropping at news

This commit is contained in:
2024-12-16 19:03:04 +01:00
parent 003cb2221d
commit 2ae28cbd87

View File

@@ -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',
],
],
];