[Typo3] linkWrap, enforce closing tag
Peter Klein
peter at umloud.dk
Mon Sep 19 19:21:36 CEST 2005
Im not sure otionSplit can do that, but you could use begin/maxItems
provided your menu isn't going to be infinite.. ;)
Something like this:
-- cut --
lib.ulByFour = COA
lib.ulByFour {
wrap = <ul> |</ul>
10 = HMENU
10.1 = TMENU
10.1 {
wrap = <li><ul>|</ul></li>
begin = 1
maxItems = 4
NO {
allWrap = <li> |</li>
}
}
20 < .10
20.1.begin = 5
30 < .10
30.1.begin = 9
# etc. etc.
}
-- cut --
Peter Klein/Umloud Untd.
"Darren Clark" <typo3 at cwebd.co.uk> wrote in message
news:mailman.403.1127110285.28241.typo3-english at lists.netfielders.de...
> On Sun, Sep 18, 2005 at 06:37:52PM -0700, Christopher wrote:
>> On 18/09/05, Darren Clark <typo3 at cwebd.co.uk> wrote:
>
> Thanks, however no cigar quite yet. This does not create groups of 4
> list items which is what I'm trying to achieve. But if the menu is not
> exactly divisible by 4 still close off the lists correctly.
>
> This is how I want the code to be displayed for 6 items in the menu:
>
> <ul>
> <li>
> <ul>
> <li>item1</li>
> <li>item2</li>
> <li>item3</li>
> <li>item4</li>
> </ul>
> </li>
> <li>
> <ul>
> <li>item5</li>
> <li>item6</li>
> </ul>
> </li>
> </ul>
>
More information about the TYPO3-english
mailing list