[TYPO3] Accessible HMENU/TMENU

Antonio Reher areher at sonoratec.biz
Tue Mar 18 19:21:28 CET 2008


Hi:
I'm trying to create a horizontal menu, such as:
option 1 | option 2 | option 3 | ... | option n

to make it accessible, we have used this model:
<ul class=estirar>
<li>option 1</li>
...
<li class=last>option n</li>
</ul>

with style being:

.estirar li {
border-right:1px solid #000000;
display:inline;
float:left;
margin:0pt 0.7em 0pt 0pt;
padding:0pt 0.9em 0pt 0pt;
}
.estirar li.final {
border:0px none;
}

of course, I've used this TS as base:

lib.menumodelo = HMENU
lib.menumodelo {
    entryLevel=4
    wrap = <ul class="estirar">|</ul>
    1 = TMENU
    1 {
        noBlur = 1
        ACT = 1
        ACTIFSUB = 0
        NO {
            wrapItemAndSub = <li>|</li>
                }
        ACT {
            wrapItemAndSub = <li class="activo">|</li>
        }
    }
}

but I get:
 option 1 | option 2 | option 3 | ... | option n |

and I can't figure out how to make the last option a <li class=last>.
Any idea how to do this?
thanks,
Antonio


More information about the TYPO3-english mailing list