[Typo3] linkWrap, enforce closing tag

Darren Clark typo3 at cwebd.co.uk
Mon Sep 19 08:09:00 CEST 2005


On Sun, Sep 18, 2005 at 06:37:52PM -0700, Christopher wrote:
> On 18/09/05, Darren Clark <typo3 at cwebd.co.uk> wrote:
> > 
> > 
> > Perhaps I didn't explain myself above clearly enough. All the menu items
> > I am dealing with here are on the same level!
> > 
> 
> Oh. Weird. Sounds to me like the easiest solution would be to
> structure the site so that you could mirror the site in the nav...
> 
> Anyway, I think you need to revisit optionSplit; your code doesn't
> seem to employ it properly. What you want is something like this:
> 
> <ul><li>|</li>|*|<li>|</li>|*|<li>|</li>|</ul>
> 
> First item will get this wrap: <ul><li>|</li>
> ALL 'middle' items will get <li>|</li>
> Final item will get this wrap: <li>|</li></ul>

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>


> 
> -Christopher
> _______________________________________________
> Typo3-english mailing list
> Typo3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english



More information about the TYPO3-english mailing list