Search code examples
typo3typoscripttypo3-7.6.x

Use split within split in Typoscript?


Using typoscript, how do I split a field by linebreak and then split each line by : ?

This is what I have tried:

30 = TEXT
30.stdWrap {
    field = abstract
    split {
        token.char = 10
        wrap = <p>|</p>
        1.current = 1
        1.stdWrap.split {
            token = :
            wrap = <span>|</span>
        }
    }
}

Solution

  • Maybe, it's worth a look at dataProcessing...

    There is also a CommaSeparatedValueProcessor which can provide CVS-like data prepared as single values for use in Fluid.