[TYPO3] no wrap if menu is empty

Rafael Freuler rafi at 4eyes.ch
Tue Sep 26 13:18:22 CEST 2006


I have a menu like this:

lib.leftMenu = HMENU
lib.leftMenu.wrap = <ul>|</ul>
lib.leftMenu.1 = TMENU
lib.leftMenu.1 {
   noBlur = 1
   NO.allWrap = <li>|</li>

How can I remove the <ul>|</ul> wrapping if there are no menu items?

I tried this (and similiar things), but it didn't work:
lib.subMenu.stdWrap.wrap = <ul>|</ul>
lib.subMenu.stdWrap.ifEmpty.wrap =

Thanks in advance,

More information about the TYPO3-english mailing list