[TYPO3] typoscript if menu empty
Akos Horvath
freesys at freesys.hu
Tue Sep 5 11:26:10 CEST 2006
Hi All
I have a menu in typoscript, which I want to wrap and display only when
it isn't empty (ie. have subpages). It contains a "flying menu" in the
top right corner of the main content (in a div) and I want to display it
only when the page have subpages.
lib.CONTENT = COBJ_ARRAY
lib.CONTENT.1 = HMENU
lib.CONTENT.1.entryLevel = 2
lib.CONTENT.1.1 = TMENU
lib.CONTENT.1.1 {
NO.allWrap = <div class="pagemenu"> | </div>
ACT = 1
ACT.allWrap = <div class="pagemenuaktiv"> | </div>
}
lib.CONTENT.1.wrap = <div id="jobbdiv"> | </div>
lib.CONTENT.2 < styles.content.get
Now I have this script, but it displays the empty div, if no submenus.
Any ideas
THX
More information about the TYPO3-english
mailing list