Issue Bug Closed

#98200Fluid does not apply stdWrap to templateRootPaths

Stefan Froemken 08/24/22, 14:17 updated 07/09/24, 12:46

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

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.