Skip to content
Snippets Groups Projects
Commit 3bb82f5e authored by Julian Hofmann's avatar Julian Hofmann Committed by Benni Mack
Browse files

[DOCS] Fix documentation on PageTypeEnhancer TypoScript example

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: default avatarDaniel Goerz <daniel.goerz@posteo.de>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
parent 18c5d9e5
Branches
Tags
No related merge requests found
......@@ -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:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment