Project

General

Profile

Actions

Bug #93615

open

It is not possible to alter the default cropVariants without copy-pasting them first

Added by S P over 3 years ago. Updated about 3 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Image Cropping
Target version:
-
Start date:
2021-03-01
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

No matter if via TSconfig or via TCA, if you just TCA override or overrideChildTca and do for example something like this (no matter if one a shipped core field or on a custom file relation field)

cropVariants {
    default {
        NaN {
            disabled = 1
        }
        selectedRatio = 16:9
    }
}

Then the Backend throws an exception because there's no translation key found. This is because the default fallback configuration is not loaded if any custom crop configuration is present:

https://docs.typo3.org/m/typo3/reference-tca/9.5/en-us/ColumnsConfig/Type/ImageManipulation.html#cropvariants

Above configuration is a fallback if no other more specific configuration has been given.

But I want to alter this exact default configuration WITHOUT having to actually copy paste it first.

Why doesn't sys_file_reference.crop ship this fallback directly via TCA, but is instead loaded dynamically on runtime (and thus not overridable, forcing people to ugly copy-paste it first)?

Actions

Also available in: Atom PDF