[TYPO3-english] Help with inline for each

Simon Browning simon at stwdesign.com
Thu Oct 22 21:57:04 CEST 2015


I'm trying to figure out how to add a space, comma, or some other delimiter between items in a for each inline statement, can't see how to do it though.  (I'm outputting categories as class names in tx_news for a nice filter).  

Here's what I've got, can anyone help?

{category.title -> f:for(each: newsItem.categories, as: 'category')}

It outputs: category1category2category3, but of course what I'd like is: category1 category2 category 3

Thank you

Simon


More information about the TYPO3-english mailing list