[TYPO3-english] f:for inline
Jan Bednarik
info at bednarik.org
Sun Apr 27 08:54:16 CEST 2014
Cool, I think you can try it without CDATA.
Jan
Dne 26.4.2014 11:14, Christian Tauscher napsal(a):
> 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