[TYPO3] Section index and option split

Tapio Markula tapio.markula at atwebteam.com
Mon May 14 21:04:01 CEST 2007


JoH asenau

>>>> wrap1, wrap2, wrap3, wrap4, wrap3, wrap4, wrap3, wrap4, wrap3, wrap5
>> I don't understand the result (in the middle 'wrap3, wrap4') .
> 
> optionSplit works like this:
> 
> first |*| middle |*| last
> 
> where middle will be rotated while first and last will only be partly
> repeated.
> So the given example rotates the middle part wrap3, wrap4 until the last
> part is rendered.

I just thought that the middle part would be rendered differently

> and for a working combination of first, default, last it would be
> 
> 
>     stdWrap.split {
>         token = ###SPLITTER###
>         cObjNum = 1||2|*||*|3||4
>         1.current = 1
>         1.wrap = <div class="wrapfirst">|</div>
>         2.current = 1
>         2.wrap = <div class="wrapmiddle">|</div>
>         3.current = 1
>         3.wrap = <div class="wraplast">|</div>
>         4.current = 1

>     }
This is good!

> There is nothing after the last ###SPLITTER### so the last element that can
> be wrapped in fact is the last but one. This is the only difference to the
> optionSplit used in a real menu.
> 
> Got the point?
I think so. At least I got a simpler alternative, which I could try next 
time. Thank's.


More information about the TYPO3-english mailing list