[TYPO3] caption split on <ul>

Krystian Szymukowicz t33k.RE.MO.VE at RE.MO.VE.prolabium.com
Sat May 20 18:37:17 CEST 2006


hello

I would like to get almost standard ul li menu like this:

<ul>
	<li><a href="">main item 1</a>
		<ul class="a1">
			<li><a href="">...</a><li>
		</ul>
	</li>
	<li><a href="">main item 2</a>
		<ul class="a2">
			<li><a href="">...</a><li>
		</ul>
	</li>
	<li><a href="">main item 3</a>
		<ul class="a3">
			<li><a href="">...</a><li>
		</ul>
	</li>
</ul>

Not standard is that each <ul> have its own classes.

The problem is that I can not make option split on <ul> to get <ul class="a1">, <ul class="a2"> etc

What I try is:


lib.menu_top = HMENU
lib.menu_top {

1 = TMENU
1 {
    expAll = 1
    wrap = <ul>|</ul>
    NO {
        allWrap = |
        stdWrap.htmlSpecialChars = 1
        wrapItemAndSub = <li class="first">|</li> |*| <li class="normal">|</li> |*| <li class="last">|</li>
        }
     }

2 = TMENU
2 {
    expAll = 1
    wrap = <ul class="1">|</ul> || <ul class="2">|</ul> || <ul class="3">|</ul>

    NO {
    stdWrap.htmlSpecialChars = 1
    wrapItemAndSub = <li class="first">|</li> |*| <li class="normal">|</li> |*| <li class="last">|</li>
     }
}


}



but it seems that TMENU.wrap has no option split as it does not work. All ul have class="1".


I hope you know the solution and are so kind to share.

thanks

--
Krystian Szymukowicz





More information about the TYPO3-english mailing list