[TYPO3-english] Show text when menu is empty

Pero Peric pperic at mail.com
Fri Jun 21 22:12:32 CEST 2013


Hi!

I want to show some text if menu is empty. I found this code:

temp.tstmenu = HMENU
temp.tstmenu {
   entryLevel = 1
   1 = TMENU
   1 {
     NO {
       AllWrap = |<br>
     }
   }
}

temp.menu = TEXT
temp.menu.value = <br>Menu is EMPTY!!<br>
temp.menu.if.isTrue < temp.tstmenu

but it doesn't work for me. I always get "Menu is empty" whether the 
menu is empty or not. I also tried adding:

temp.menu.if.negate = 1

but then nothing is displayed. Anyone can help? Thx!

Regards.


More information about the TYPO3-english mailing list