简体   繁体   中英

TYPO3 9.5.4 (with slug) ignores get parameter 'type'

I want to switch the type of my typo3 website eg for xml or json output, but the system ignores the get parameter type. I don't know what I'm doing wrong or if there is a bug.

typoscript example

testtype = PAGE
testtype.typeNum = 13
testtype.10 = TEXT
testtype.10.value = test
testtype.config.disableAllHeaderCode = 1

my site config

https://pastebin.com/UsdZGq7N

You make use of the PageType routeEnhancer, when that is active you have to map all the page-types you use. Otherwise it gets stripped from the url.

Also, the PageType routeEnhancer should be the last enhancer you configure, as it modifies existing route variants: https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/core/Classes/Routing/Enhancer/PageTypeDecorator.php#L25

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM