Project

General

Profile

Actions

Feature #62593

closed

flexible templating: usage of glue-separated list in f:for

Added by Dieter Porth over 9 years ago. Updated over 8 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2014-11-01
Due date:
% Done:

0%

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

Description

I want to convert from a comma-separated list into an array.
I want to use that array in a FOR-object Fluid-templates - for example to generate a list of links.
The comma separated list should be maintainable in the constants editor of the TYPO3-backend, because I collect all specific website-parameters in the constants.

Unfortunately, I can not convert a string to an array in the f:for-Object (TYPO3 6.2.6).
I currently use the following work-around using the VHS-extension: (I don't not need that extension otherwise):

Example:

    <f:for each="{v:iterator.explode(content: '{lib_config ->f:format.raw()}', glue: ',')}" as="value">
        <f:uri.page pageUid="{value}" additionalParams="{L:'1'}" /><br />
    </f:for>
Actions

Also available in: Atom PDF