[TASK] Adjust rst syntax for proper yaml and ts highlighting 15/58515/2
authorDaniel Siepmann <daniel.siepmann@typo3.org>
Mon, 1 Oct 2018 09:10:12 +0000 (11:10 +0200)
committerSusanne Moog <susanne.moog@typo3.org>
Mon, 1 Oct 2018 09:35:14 +0000 (11:35 +0200)
Use proper code highlighting syntax for yaml and typoscript within 86160
changelog entry.

Resolves: #86160
Releases: master
Change-Id: I791956413885cabdfdf5693e9d0ad6c4be41a29d
Reviewed-on: https://review.typo3.org/58515
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Josef Glatz <josef.glatz@typo3.org>
Tested-by: Josef Glatz <josef.glatz@typo3.org>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
typo3/sysext/core/Documentation/Changelog/master/Feature-86160-PageTypeEnhancerForMappingTypeParameter.rst

index 7317a05..c31de52 100644 (file)
@@ -17,44 +17,42 @@ It is now possible to map various page types to endings.
 
 Example TypoScript:
 
-:ts:
-
-       page = PAGE
-       page.typeNum = 0
-       page.10 = TEXT
-       page.10.value = Default page
-
-       rssfeed = PAGE
-       rssfeed.typeNum = 13
-       rssfeed.10 < plugin.tx_myplugin
-       rssfeed.config.disableAllHeaderCode = 1
-       rssfeed.config.additionalHeaders.10.header = Content-Type: xml/rss
-
-       jsonview = PAGE
-       jsonview.typeNum = 26
-       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
-
+.. code-block:: typoscript
+
+   page = PAGE
+   page.typeNum = 0
+   page.10 = TEXT
+   page.10.value = Default page
+
+   rssfeed = PAGE
+   rssfeed.typeNum = 13
+   rssfeed.10 < plugin.tx_myplugin
+   rssfeed.config.disableAllHeaderCode = 1
+   rssfeed.config.additionalHeaders.10.header = Content-Type: xml/rss
+
+   jsonview = PAGE
+   jsonview.typeNum = 26
+   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 `config.yaml` file like this:
 
+.. code-block:: yaml
 
-:yaml:
-       routeEnhancers:
-         PageTypeSuffix:
-           type: PageType
-           default: ''
-           map:
-             'rss.feed': 13
-             '.json': 26
+   routeEnhancers:
+      PageTypeSuffix:
+         type: PageType
+         default: ''
+         map:
+         'rss.feed': 13
+         '.json': 26
 
 It is also possible to set `default` to e.g. ".html" to add a ".html" suffix to all default pages.
 
 The `map` allows to add a filename or a file ending and map this to a `page.typeNum` value.
 
-
 Impact
 ======