[DOCS] Fix documentation on PageTypeEnhancer TypoScript example 87/63887/6
authorJulian Hofmann <noreply@example.com>
Tue, 24 Mar 2020 08:46:50 +0000 (08:46 +0000)
committerBenni Mack <benni@typo3.org>
Tue, 24 Mar 2020 12:31:10 +0000 (13:31 +0100)
Fix a wrong code example: 'config' is a property of PAGE-object,
not of the USER-object.

Releases: master, 9.5
Resolves: #90821
Change-Id: I8639bfdbd71e9968687afd172418616ce930d93d
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63887
Tested-by: Daniel Goerz <daniel.goerz@posteo.de>
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Daniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: Benni Mack <benni@typo3.org>
typo3/sysext/core/Documentation/Changelog/9.5/Feature-86160-PageTypeEnhancerForMappingTypeParameter.rst

index 9ae2420..1e9dee3 100644 (file)
@@ -32,10 +32,10 @@ Example TypoScript:
 
    jsonview = PAGE
    jsonview.typeNum = 26
+   jsonview.config.disableAllHeaderCode = 1
+   jsonview.config.additionalHeaders.10.header = Content-Type: application/json
    jsonview.10 = USER
    jsonview.10.userFunc = MyVendor\MyExtension\Controller\JsonPageController->renderAction
-   jsonview.10.config.disableAllHeaderCode = 1
-   jsonview.10.config.additionalHeaders.10.header = Content-Type: application/json
 
 Now configure the Route Enhancer in your site's :file:`config.yaml` file like this: