[TYPO3-english] Repeat a Wrap every 4 times (maybe optionSplit)

Ansgar Brauner ansgarb at gmail.com
Thu Feb 4 16:23:35 CET 2010


Tapio Markula schrieb:
> Ansgar Brauner .
>>
>> Would this be possible with the optionSplit functionality?
> 
> should be
> use || and |*| correct way
> 
>  Is there a
>> way to revert the order? Not starting with the last Item.
> no
Hi,

thank you for your answer. This is what I got till now, but this does
not fit my described needs.


Sorry for the long code (I will try to divide it, originally its all in
one line):

wrapItemAndSub =
<div class="row"><li class="secondLevel"> | </li>
|| <li class="secondLevel"> | </li>
|| <li class="secondLevel"> | </li>
|| <li class="secondLevel"> | </li>
|*|
</div><div class="row"><li class="secondLevel"> | </li>
|| <li class="secondLevel"> | </li>
|| <li class="secondLevel"> | </li>
|| <li class="secondLevel"> | </li>
|*|
</div><div class="row"><li class="secondLevel"> | </li>
|| <li class="secondLevel"> | </li>
|| <li class="secondLevel"> | </li>
|| <li class="secondLevel"> | </li></div>

The Problem is that I'm not able to say:
Wrap at latest after 4 Items but if there are only 3 items left wrap
them with the div.row.
Imagine there are 11 Items. I will get two complete rows. But the third
row will start but the tag will not be closed.

Thanks to all of you.

Ansgar


More information about the TYPO3-english mailing list