feat: just allow 16:9 cropping at news
This commit is contained in:
parent
003cb2221d
commit
2ae28cbd87
1 changed files with 18 additions and 0 deletions
|
|
@ -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',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
];
|
||||||
Loading…
Add table
Add a link
Reference in a new issue