[TYPO3] no wrap if menu is empty
Benjamin Mack
bmack at kirix.com
Tue Sep 26 13:29:27 CEST 2006
Hey,
I had the EXACT same problem 4 months ago. See the archives for this :-)
I tried with ifEmpty. So here is the answer.
Not necessary here ot use ifEmpty.
> Simply move the wrap to TMENU instead of HMENU.
>
> lib.leftMenu = HMENU
> lib.leftMenu {
> entryLevel = 2
> 1 = TMENU
> 1 {
> wrap = <ul> | </ul>
> noBlur = 1
> NO = 1
> ACT = 1
> }
> }
>
> TMENU wrap will wrap only, if there are items in the menu.
greetings,
benni.
-SDG-
Rafael Freuler wrote:
> Hi
>
> 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,
> Rafi
> _______________________________________________
> 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