Project

General

Profile

Actions

Bug #105653

open

Extbase Backend controller does not autodetect fluid template file based on controller name and controller action anymore

Added by Sebastien Convers about 16 hours ago. Updated about 10 hours ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2024-11-20
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
13
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

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

Actions #1

Updated by Sebastien Convers about 16 hours 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
Actions #2

Updated by Sebastien Convers about 16 hours 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
Actions #3

Updated by Garvin Hicking about 10 hours ago

  • Category set to Fluid
Actions

Also available in: Atom PDF