[TYPO3-english] f:for inline
Jan Bednarik
info at bednarik.org
Sat Apr 26 08:45:17 CEST 2014
Hi,
how about you try this:
<![CDATA[<li class="]]><f:for each .... </f:for><![CDATA[">]]>
You'd just need to take care of whitespaces by either putting the whole
<f:for> on one line or writing a ViewHelper that would remove them.
Jan
> I have serveral items.
> Each Item my have one ore more categories.
>
> The Categories(uid) shpuld be used as CSS-class
> I have a ViewHelper: a given integer is returnd as a class name.
>
>
> <f:for each="{offers}" as="offer">
> <li class="{f:for-dontknow.. ***}">
>
> * <f:for each="{offer.categories}" as="item">
> * <tmd:IntToClass uid="{uid}" />
> * </f:for>
>
> </li>
> </f:for>
>
>
> how do I get this *** inline, so that my classes are rendered correct?
>
> Ist there a way through partials?
>
>
> Thanks a lot for your help,
>
> Christian.
>
More information about the TYPO3-english
mailing list