Bug #103774
closedErrormessage in PAGEVIEW requests template with lowercase first letter
100%
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
Updated by Gerrit Code Review 7 months ago
- Status changed from New to Under Review
Patch set 1 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/+/84101
Updated by Gerrit Code Review 7 months ago
Patch set 2 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/+/84101
Updated by Gerrit Code Review 7 months ago
Patch set 3 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/+/84101
Updated by Lina Wolf 7 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset a512e8bdb61b7623d19e3125289e3fbb9f90870c.