Skip to content

Commit

Permalink
[DOCS] Fix documentation on PageTypeEnhancer TypoScript example
Browse files Browse the repository at this point in the history
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/+/63870
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
  • Loading branch information
Julian Hofmann authored and bmack committed Mar 24, 2020
1 parent 39ebeed commit 608e2a8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit 608e2a8

Please sign in to comment.