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 #2

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

Actions #3

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

Actions #4

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

Actions #5

Updated by Lina Wolf 7 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Benni Mack 5 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF