[TYPO3-english] f:for inline

Christian Tauscher christian.tauscher at media-distillery.de
Sat Apr 26 11:14:31 CEST 2014


Not easy to read, but this works!

Thank You!

Christian.

> 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?




More information about the TYPO3-english mailing list