Project

General

Profile

Actions

Bug #79290

closed

Fluid cannot override default resolved paths if default paths exist

Added by Claus Due over 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-01-12
Due date:
% Done:

100%

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

Description

Since changes in how CMS Fluid sorts template paths were performed, one place in code was not updated.

https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/fluid/Classes/View/TemplatePaths.php#L118 contains a loop which array-merges path configurations, but the default paths are added LAST which results in those paths being checked FIRST. This must be changed to append configured paths on top of default paths.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #81099: Extension cannot override default (fallback) templateRootPaths/partialRootPaths/partialRootPathsResolved2017-05-01

Actions
Actions #1

Updated by Gerrit Code Review over 7 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51283

Actions #2

Updated by Anonymous over 7 years ago

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

Updated by Nicole Cordes about 7 years ago

I don't get the problem here but the applied patch is breaking extensions, which set an own path e.g. for module configuration.

This configuration isn't working anymore as it is overwriten by the default paths:

module.tx_example {
view {
templateRootPaths.0 = EXT:example/Resources/Private/Backend/Templates/
partialRootPaths.0 = EXT:example/Resources/Private/Backend/Partials/
layoutRootPaths.0 = EXT:example/Resources/Private/Backend/Layouts/
}
}

Due to the patch the issue popped up. Before the patch everything worked like expected (and was overwriten the right way)!

Actions #4

Updated by Anonymous almost 7 years ago

  • Related to Bug #81099: Extension cannot override default (fallback) templateRootPaths/partialRootPaths/partialRootPaths added
Actions #5

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF