[Typo3] "expAll" doesn't

Georg Rehfeld georg.rehfeld at gmx.de
Mon Jan 31 18:08:01 CET 2005


Hi Mark, all,

>>What result do you want to get?
>>Why 3 subparts for one menu?
> 
> Because the client wants it, and the client is always right.  >:-(
> 
>>And it looks like you want to put each level into his own box. So what
>>would the result of expAll be (if it would work as you expected)?
>>
>>Maybe
>>--- (all pages on level  1)
>> ....
>>
>>Doesnt make sence to me... what do you expect?
> 
> Just like that, except as three horizontal menus on top of each other. It
> was easy to do, except the expAll bit not working...

Assuming you'll do the horizontal thing via CSS here is the
working (tested!) TS, giving you, what your client wants:

subparts.navcontainer = HMENU
### not strictly neccessary, it's the default
subparts.navcontainer.entryLevel = 0
subparts.navcontainer.1 = TMENU
subparts.navcontainer.1 {
   expAll = 1
   wrap = <div id="navcontainer1"><ul id="navlist1"> | </ul></div>
   NO.allWrap = <li> | </li>
   ACT = 1
   ACT.allWrap = <li id="active"> | </li>
   ACT.ATagParams = id="current"
}

subparts.2menu = HMENU
subparts.2menu.entryLevel = 0
subparts.2menu.1 = TMENU
subparts.2menu.1 {
   expAll = 1
   ### just one div/ul around all the level2 items
   wrap = <div id="navcontainer2"><ul id="navlist2"> | </ul></div>
   NO = 1
   ### process level 1 entries, but don't spit out anything
   NO.doNotShowLink = 1
}
subparts.2menu.2 = TMENU
subparts.2menu.2 {
   expAll = 1
   NO.allWrap = <li> | </li>
   ACT = 1
   ACT.allWrap = <li id="active"> | </li>
   ACT.ATagParams = id="current"
}

subparts.3menu = HMENU
subparts.3menu.entryLevel = 0
subparts.3menu.1 = TMENU
subparts.3menu.1 {
   expAll = 1
   wrap = <div id="navcontainer3"><ul id="navlist3"> | </ul></div>
   NO = 1
   ### process level 1 entries, but don't spit out anything
   NO.doNotShowLink = 1
}
subparts.3menu.2 = TMENU
subparts.3menu.2 {
   expAll = 1
   NO = 1
   ### process level 2 entries, but don't spit out anything
   NO.doNotShowLink = 1
}
subparts.3menu.3 = TMENU
subparts.3menu.3 {
   expAll = 1
   NO.allWrap = <li> | </li>
   ACT = 1
   ACT.allWrap = <li id="active"> | </li>
   ACT.ATagParams = id="current"
}

hth

Georg
-- 
  ___   ___
| + | |__    Georg Rehfeld      Woltmanstr. 12     20097 Hamburg
|_|_\ |___   georg.rehfeld.nospam at gmx.de    +49 (40) 23 53 27 10




More information about the TYPO3-english mailing list