Project

General

Profile

Actions

Bug #103774

closed

Errormessage in PAGEVIEW requests template with lowercase first letter

Added by Lina Wolf 7 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Fluid
Target version:
-
Start date:
2024-05-01
Due date:
% Done:

100%

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

Description

Using the :typoscript:`PAGEVIEW` TypoScript element to display a content element:

.. code-block:: typoscript
:caption: EXT:my_sitepackage/Configuration/Sets/MySet/setup.typoscript
page = PAGE
page {
10 = PAGEVIEW
10 {
paths {
100 = EXT:site_package/Resources/Private/Templates/
}
// ...
}
}
There is a file called `EXT:site_package/Resources/Private/Templates/pages/default.html`.

I get the error message

Could not find template source for "pages/default". Configured templateRootPaths: /var/www/html/vendor/myvendor/site-package/Resources/Private/Templates/

This is due to the fact that the template name gets treated as 'action name' and is passed through ucfirst in TYPO3Fluid\Fluid\View\TemplatePaths::resolveTemplateFileForControllerAndActionAndFormat

Therefore we need to also ucfirst the template name in the error message

Actions

Also available in: Atom PDF