[TYPO3-mvc] Last element with for-ViewHelper

David Schreiber flashmasterdash at gmail.com
Fri Jan 15 11:56:22 CET 2010


Hello Everybody,

I have some rather small problem with building a list of tags, with
use of the Fluid for-ViewHelper.

My template works like this:

<f:for each="{tags}" as="tag">{tag.name}, </f:for>

This creates me following lists:

Tag1, Tag2, Tag3, Tag4, 

How can I make this list, without the trailing comma at the end of it?
Is there a way to achieve a special handling for the last item of a
for-each construct?


More information about the TYPO3-project-typo3v4mvc mailing list