[BUGFIX] Fix configuration example in image manipulation rst 93/51993/2
authorHelmut Hummel <typo3@helhum.io>
Thu, 9 Mar 2017 21:22:38 +0000 (22:22 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 9 Mar 2017 22:16:34 +0000 (23:16 +0100)
The configuration example for cover areas is wrong and needs
to be nested below cropVariants and <cropVariantId>

Resolve: #80218
Releases: master
Change-Id: I5c65fb8657fe93b41a083c01b6bea0a8610177bc
Reviewed-on: https://review.typo3.org/51993
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Joerg Boesche <typo3@joergboesche.de>
Tested-by: Joerg Boesche <typo3@joergboesche.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Documentation/Changelog/8.6/Feature-75880-ImplementMultipleCroppingVariantsInImageManipulationTool.rst

index 0d181ae..c28d9c8 100644 (file)
@@ -114,14 +114,18 @@ the crop area. The focus area cannot intersect with any of the cover areas.
 
        'config' => [
            'type' => 'imageManipulation',
-            'coverAreas' => [
-                [
-                    'x' => 0.05,
-                    'y' => 0.85,
-                    'width' => 0.9,
-                    'height' => 0.1,
-                ]
-            ],
+           'cropVariants' => [
+               'mobile' => [
+                   'title' => 'LLL:EXT:ext_key/Resources/Private/Language/locallang.xlf:imageManipulation.mobile',
+                   'coverAreas' => [
+                       [
+                           'x' => 0.05,
+                           'y' => 0.85,
+                           'width' => 0.9,
+                           'height' => 0.1,
+                       ]
+                   ],
+               ],
            ],
        ]
 
@@ -177,7 +181,7 @@ It is also possible to set the cropping configuration only for a specific tt_con
                   ],
               ],
            ],
-   ];
+       ];
 
 
 To render crop variants, the variants can be specified as argument to the image view helper: