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

Christopher Torgalson bedlamhotel at gmail.com
Thu Feb 4 16:48:31 CET 2010


Hi,

On Thu, Feb 4, 2010 at 7:23 AM, Ansgar Brauner <ansgarb at gmail.com> wrote:
> 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.


IMO, you need to start from the beginning: your markup is invalid:
<ul> can *only* contain <li> elements...


-- 
Christopher Torgalson
http://www.typo3apprentice.com/


More information about the TYPO3-english mailing list