[BUGFIX] Allow overriding of image manipulation crop ratios 22/49122/2
authorBenni Mack <benni@typo3.org>
Tue, 19 Jul 2016 20:39:19 +0000 (22:39 +0200)
committerBenni Mack <benni@typo3.org>
Wed, 20 Jul 2016 06:59:09 +0000 (08:59 +0200)
It is not possible to change or override crop ratios via TSconfig
for sys_file_reference (e.g. for a specific user or page tree branch),
thus making the cropping functionality a pain for bigger sites.

Setting a FormEngine option as expected like
  TCEFORM.sys_file_reference.crop.config.ratios.2\.15 = Widescreen
does now work.

Resolves: #77159
Releases: master, 7.6
Change-Id: I9b1366ed4339150c366fc36a814a251cc407afaa
Reviewed-on: https://review.typo3.org/49122
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/backend/Classes/Form/Utility/FormEngineUtility.php

index a707590..7210703 100644 (file)
@@ -51,6 +51,7 @@ class FormEngineUtility
         'select' => array('size', 'autoSizeMax', 'maxitems', 'minitems', 'readOnly', 'treeConfig'),
         'group' => array('size', 'autoSizeMax', 'max_size', 'show_thumbs', 'maxitems', 'minitems', 'disable_controls', 'readOnly'),
         'inline' => array('appearance', 'behaviour', 'foreign_label', 'foreign_selector', 'foreign_unique', 'maxitems', 'minitems', 'size', 'autoSizeMax', 'symmetric_label', 'readOnly'),
+        'imageManipulation' => array('ratios')
     );
 
     /**