Project

General

Profile

Actions

Feature #66111

closed

Add TemplateRootPaths support to cObject FLUIDTEMPLATE

Added by Frans Saris about 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid Styled Content
Target version:
-
Start date:
2015-03-28
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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 3 (0 open3 closed)

Related to TYPO3 Core - Feature #38732: Modernize Content ElementsClosedPatrick Broens2015-07-24

Actions
Related to TYPO3 Core - Bug #60338: Changing view format does not affect partial formatClosedMarkus Klein2014-07-15

Actions
Related to TYPO3 Core - Bug #71113: FLUIDTEMPLATE does not evalute templateName stdWrap if no templateName is givenClosedMarkus Klein2015-10-29

Actions
Actions

Also available in: Atom PDF