douhui3760 2017-05-18 09:05
浏览 80

TYPO3 - 内联FLUID - 添加空格

I am searching for a Example or Solution. I have a inline for each and I need a Space after the Items

{items -> f:for(each: '{field.referenzTeaserCategory -> dce:explode(delimiter:\',\')}', as: 'items', iteration: 'iterator')}

The Output is "cat1cat2cat3" but i need the Output with a Space, like this: "cat1 cat2 cat3"

Thanks for a Solution.

  • 写回答

3条回答 默认 最新

  • douzhan1963 2017-05-18 09:31
    关注

    I don't think that you can build this with inline notation with normal fluid.
    You need to use a viewhelper which concatenates your variable items with a string ' '. You may introduce this VH or use tag notation:

    <f:for each="{field.referenzTeaserCategory -> dce:explode(delimiter:',')}" as="items" iteration="iterator">{items} </f:for>
    

    BTW: really items? it is only one item (at a time)

    评论

报告相同问题?