#102188FLUIDTEMPLATE with set extbase.controllerExtensionName not resolve extension name inside f:translate
Description
The docs says in FLUIDTEMPLATE (cObject):
extbase.controllerExtensionName:
Sets the extension name of the controller.
*Tip
Setting this allows you to skip the extensionName argument for the f:translate and the f:uri.resource ViewHelpers.
This requires you to put translations and public images in the usual paths in your extension.*
The tip seems not to work anymore in TYPO3 13.
When we have a setup like:
page = PAGE
page.10 = FLUIDTEMPLATE
page.10 {
extbase.controllerExtensionName = extensionKey
…
the request is not a instance of ExtbaseRequestInterface so we get RuntimeException 1639828178 in f:translate
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
History 2
-
Stefan Bürk commented 10/18/23, 09:27
-
Garvin Hicking commented and changed status
NewClosed 07/12/24, 11:13The docs were updated with https://github.com/TYPO3-Documentation/TYPO3CMS-Reference-Typoscript/pull/1114 to mention that this setting should no longer be used.
Thus I am closing the issue here. If you find other places in the docs were it would need adoption, please let me know or create a follow-up issue. I hope this is ok!
You can use following changes to mitigate this, unrelated to the context:
For the `f:uri.resource` ViewHelper set the extensionKey in the ViewHelper:
and for the translate viewhelper use the LLL sytax along with the EXT
additional comments
@lolli tried to work on the translate viewhelper to relax it a bit, but hit some burden – not sure about the current state. Still, a ReST file is missing explaining this and other ViewHelper quirks.