[TYPO3] How does ifEmpty work? Simple TypoScript question

Dmitry Dulepov typo3 at accio.lv
Tue Jul 4 11:02:41 CEST 2006


Hi!

Benjamin Mack wrote:
> What I want is, that if my MENU object is empty, that it overrides the 
> sidemenu.wrap function. That's why I got this "wrap" on line 3, and it 
> should be overridden in the last line. Could someone please help me on 
> this?

Firsts, your menu will not be empty, it will contain at least "<div 
id="sidenav"></div>". Second, you are overriding menu with its value. 
Pipe character means "current value", so your last line is useless.

> ----
> lib.sidemenu = HMENU
> lib.sidemenu.entryLevel = 2
> lib.sidemenu.wrap = <div id="sidenav"> | </div>
> lib.sidemenu.1 = TMENU
> lib.sidemenu.1 {
>  noBlur = 1
>  NO = 1
>  ACT = 1
> }
> lib.sidemenu.stdWrap.ifEmpty.wrap = |

Dmitry.
-- 
"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)



More information about the TYPO3-english mailing list