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)

    评论

报告相同问题?

悬赏问题

  • ¥15 keil的map文件中Image component sizes各项意思
  • ¥30 BC260Y用MQTT向阿里云发布主题消息一直错误
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)