Important: #93854 - Add disabled option for allowed aspect ratios
See forge#93854
Description
Like for crop variants it is now possible to add the option to disable aspect ratios by adding a "disabled" key to the array.
$GLOBALS['TCA']['tt_content']['types']['textmedia']['columnsOverrides']
['assets']['config']['overrideChildTca']['columns']['crop']['config'] = [
'cropVariants' => [
'default' => [
'allowedAspectRatios' => [
'4:3' => [
'disabled' => true,
],
],
],
],
];
Copied!
This works for each field, that defines crop variants for any
sys_
usage.
Impact
This will optionally let you disable aspect ratios for a specific field or
CType
, which is sometimes necessary because the ratio will not fit in
the frontend.