#105653Extbase Backend controller does not autodetect fluid template file based on controller name and controller action anymore
Description
In TYPO3 12, you could do this:
use TYPO3\CMS\Extbase\Mvc\Controller\ActionController;
class MyCustomController extends ActionController
{
...
protected function overviewAction(): ResponseInterface
{
...
return $this->moduleTemplate->renderResponse();
}
}
This would result in finding a fluid template in Resources/Private/Templates/MyCustom/Overview.html
In TYPO3 13, auto detection of controller and action name is not working, and you MUST define a template name like this
return $this->moduleTemplate->renderResponse('MyCustom/Overview');
I tried to find the cause, and from what i understood it is a RenderingContext problem in typo3fluid/fluid/src/View/AbstractTemplateView.php
in TYPO3 12, RenderingContext in AbstractTemplateView.php has controllerName and controllerAction set fine, and in 13 both values are set to Default
Reviews 2
History 714
-
Sebastien Convers changed subject
Extbase Backend controller does not autodetect template base on controller name and controller action anymoreExtbase Backend controller does not autodetect template based on controller name and controller action anymore <span data-processor="relativetime" data-value="2024-11-20T14:41:39+00:00" > 11/20/24, 14:41 </span> -
Sebastien Convers changed subject
Extbase Backend controller does not autodetect template based on controller name and controller action anymoreExtbase Backend controller does not autodetect fluid template file based on controller name and controller action anymore <span data-processor="relativetime" data-value="2024-11-20T14:42:14+00:00" > 11/20/24, 14:42 </span> -
Garvin Hicking changed category <span data-processor="relativetime" data-value="2024-11-20T20:55:05+00:00" > 11/20/24, 20:55 </span>
-
Gerrit Code Review pushed patch set 6 for main to change 87141 status
NewUnder Review <span data-processor="relativetime" data-value="2024-11-21T15:12:24+00:00" > 11/21/24, 15:12 </span> -
Sebastien Convers commented <span data-processor="relativetime" data-value="2024-11-21T15:33:30+00:00" > 11/21/24, 15:33 </span>
Ok, thanks for clarification
-
Gerrit Code Review pushed patch set 7 for main to change 87141 <span data-processor="relativetime" data-value="2024-11-21T16:10:08+00:00" > 11/21/24, 16:10 </span>
-
Gerrit Code Review pushed patch set 8 for main to change 87141 <span data-processor="relativetime" data-value="2024-11-21T17:38:38+00:00" > 11/21/24, 17:38 </span>
-
Gerrit Code Review pushed patch set 9 for main to change 87141 <span data-processor="relativetime" data-value="2024-11-21T19:39:41+00:00" > 11/21/24, 19:39 </span>
-
Gerrit Code Review pushed patch set 10 for main to change 87141 <span data-processor="relativetime" data-value="2024-11-21T19:40:22+00:00" > 11/21/24, 19:40 </span>
-
Gerrit Code Review pushed patch set 11 for main to change 87141 <span data-processor="relativetime" data-value="2025-01-13T10:35:52+00:00" > 01/13/25, 10:35 </span>
-
Gerrit Code Review pushed patch set 1 for 13.4 to change 87708 <span data-processor="relativetime" data-value="2025-01-13T10:49:49+00:00" > 01/13/25, 10:49 </span>
-
Torben Hansen commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2025-01-13T11:05:09+00:00" > 01/13/25, 11:05 </span>Applied in changeset commit:1007c0d09612f3e73dcc901af4227ef939b3483b.
-
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2025-12-02T14:31:33+00:00" > 12/02/25, 14:31 </span>
This behavior is actually intended in TYPO3 v13+, but currently not documented. I added a patch, which throws an
InvalidArgumentException, when no template file name is given.