[Typo3] Not render something if a menu is empty.

Peter Klein peter at umloud.dk
Mon Feb 21 21:25:05 CET 2005


Hi Ries				

You can test if a menu object is empty with ".if.isTrue < YourMenuObject" 
Like in this example:
-- cut --
temp.tstmenu = HMENU
temp.tstmenu {
  entryLevel = 1
  # Do NOT put "wrap" here!!
  1 = TMENU
  1 {
    wrap = <div style="border:1px solid black">Testmenu<br>|</div>
    NO {
      AllWrap = |<br>
    }
  }
}

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

page.10 < temp.menu

-- cut --


- Peter Klein (pmk65)

-----------------------
This thread is located in the archive at this URL:
http://typo3.org/documentation/mailing-lists/english-main-list-archive/thread/110110815/
					



More information about the TYPO3-english mailing list