Index: vendor/typo3fluid/fluid/src/ViewHelpers/ForViewHelper.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/vendor/typo3fluid/fluid/src/ViewHelpers/ForViewHelper.php b/vendor/typo3fluid/fluid/src/ViewHelpers/ForViewHelper.php --- a/vendor/typo3fluid/fluid/src/ViewHelpers/ForViewHelper.php (date 1608215296972) +++ b/vendor/typo3fluid/fluid/src/ViewHelpers/ForViewHelper.php (date 1608215296972) @@ -79,6 +79,7 @@ $this->registerArgument('key', 'string', 'Variable to assign array key to', false); $this->registerArgument('reverse', 'boolean', 'If TRUE, iterates in reverse', false, false); $this->registerArgument('iteration', 'string', 'The name of the variable to store iteration information (index, cycle, isFirst, isLast, isEven, isOdd)'); + $this->registerArgument('delim', 'string', 'The delimiter to for exploding, if each recieve an string instead of an array.', false, ','); } /** @@ -94,6 +95,10 @@ if (!isset($arguments['each'])) { return ''; } + if ((is_string($arguments['each'])) && (!empty($arguments['each']))) { + $delim = isset($arguments['delim']) ? $arguments['delim'] : ','; + $arguments['each'] = array_filter(explode($delim, $arguments['each'])); + } if (is_object($arguments['each']) && !$arguments['each'] instanceof \Traversable) { throw new ViewHelper\Exception('ForViewHelper only supports arrays and objects implementing \Traversable interface', 1248728393); }