Project

General

Profile

Actions

Bug #98200

closed

Fluid does not apply stdWrap to templateRootPaths

Added by Stefan Froemken about 2 years ago. Updated 5 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
Start date:
2022-08-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hello Fluid Team,

in documentation I found a pretty cool information for templateRootPaths:

https://docs.typo3.org/m/typo3/reference-typoscript/10.4/en-us/ContentObjects/Fluidtemplate/Index.html#templaterootpaths

Quote "Data type: array of file paths with stdWrap"

I just used it that way:

    templateRootPaths {
      0 = EXT:events2/Resources/Private/Templates/
      1 = EXT:events2/Resources/Private/Templates/Overrides/
      1.if.isTrue = {$plugin.tx_events2.settings.useExtForm}
      2 = {$plugin.tx_events2.view.templateRootPath}
    }

But frontend results in:

(1/1) #1476107295 TYPO3\CMS\Core\Error\Exception
PHP Warning: rtrim() expects parameter 1 to be string, array given in /var/www/html/vendor/typo3fluid/fluid/src/View/TemplatePaths.php line 468

Nice greetings

Stefan

Actions

Also available in: Atom PDF