Feature #66111
Add TemplateRootPaths support to cObject FLUIDTEMPLATE
Status: | Resolved | Start date: | 2015-03-28 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | - | % Done: | 100% |
|
Category: | 7 Fluid CE | Spent time: | - | |
Target version: | - | |||
PHP Version: | Sprint Focus: | |||
Complexity: |
Description
Now FLUIDTEMPLATE supports layoutRootPaths and partialRootPaths it would be a great addition if it also would support templateRootPaths with the same "Template Path Fallback logic" (#61361). Just like the ExtBase action controller does.
The template value/parameter is already in use so maybe we should go for templateName.
This brings the possibility to create a default Fluid based rendering setup that can easily be adjusted to use own templates by only adding your own layoutRootPaths, partialRootPaths and templateRootPaths where you only add the template you wish to override. And since the template fallback logic is there you can easily introduce new templates etc without the need to copy them to your own template set.
For example:
lib.stdContent = FLUIDTEMPLATE lib.stdContent { templateName = Default layoutRootPaths { 10 = EXT:frontend/Resources/Private/Layouts 20 = EXT:sitemodification/Resources/Private/Layouts } partialRootPaths { 10 = EXT:frontend/Resources/Private/Partials 20 = EXT:sitemodification/Resources/Private/Partials } templateRootPaths { 10 = EXT:frontend/Resources/Private/Templates 20 = EXT:sitemodification/Resources/Private/Templates } variable { foo = bar } }
Related issues
Associated revisions
[FEATURE] Add TemplateRootPaths support to cObject FLUIDTEMPLATE
cObject FLUIDTEMPLATE is extended with `templateRootPaths` and
`templateName`. Now you can set a template name and when rendering the
template this name is used together with the set format to find the
template in the given templateRootPaths with the same fallback logic as
layoutRootPath and partialRootPath.
Resolves: #66111
Releases: master
Change-Id: I30d7fa63f63f818b5da31194bad1dccce95929e2
Reviewed-on: http://review.typo3.org/38331
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Frank Nägler <typo3@naegler.net>
Tested-by: Frank Nägler <typo3@naegler.net>
History
#1 Updated by Gerrit Code Review 4 months 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 http://review.typo3.org/38331
#2 Updated by Gerrit Code Review 4 months ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38331
#3 Updated by Gerrit Code Review 4 months ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38331
#4 Updated by Markus Klein 4 months ago
As discussed on Slack the functionality should go into StandaloneView
#5 Updated by Gerrit Code Review 3 months ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38331
#6 Updated by Gerrit Code Review 3 months ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38331
#7 Updated by Gerrit Code Review 3 months ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38331
#8 Updated by Gerrit Code Review 3 months ago
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38331
#9 Updated by Gerrit Code Review 3 months ago
Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38331
#10 Updated by Gerrit Code Review 3 months ago
Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38331
#11 Updated by Frans Saris 3 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 2bc2196274a0c895fadcff01b5693fa67b16204e.
#12 Updated by Mathias Schreiber 29 days ago
- Category changed from Content Rendering to 7 Fluid CE