Bug #105653
closedExtbase Backend controller does not autodetect fluid template file based on controller name and controller action anymore
100%
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
Updated by Sebastien Convers about 2 months ago
- Subject changed from Extbase Backend controller does not autodetect template base on controller name and controller action anymore to Extbase Backend controller does not autodetect template based on controller name and controller action anymore
Updated by Sebastien Convers about 2 months ago
- Subject changed from Extbase Backend controller does not autodetect template based on controller name and controller action anymore to Extbase Backend controller does not autodetect fluid template file based on controller name and controller action anymore
Updated by Gerrit Code Review about 2 months ago
- Status changed from New to Under Review
Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87141
Updated by Torben Hansen about 2 months ago · Edited
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.
Updated by Gerrit Code Review about 2 months ago
Patch set 7 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87141
Updated by Gerrit Code Review about 2 months ago
Patch set 8 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87141
Updated by Gerrit Code Review about 2 months ago
Patch set 9 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87141
Updated by Gerrit Code Review about 2 months ago
Patch set 10 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87141
Updated by Gerrit Code Review 3 days ago
Patch set 11 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87141
Updated by Gerrit Code Review 3 days ago
Patch set 1 for branch 13.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87708
Updated by Torben Hansen 3 days ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 1007c0d09612f3e73dcc901af4227ef939b3483b.