[TYPO3-english] Submenus on sidebar
Xavier Perseguers
typo3 at perseguers.ch
Wed Jul 22 16:22:55 CEST 2009
>>> I have a website where the main menus are on top horizontally. I
>>> would like my submenus NOT to appear below the main menus but to on a
>>> sidebar.
>>
>> Search for property "entryLevel"...
>
> I have but still can't find help from it
>
> Below is my TS which only displays the main menus. How do I edit it to
> display the submenus on a side bar?
>
> # Menu 1 cObject
> lib.menu_1 = HMENU
> # First level menu-object, textual
> lib.menu_1 {
> #wrap = <ul id="tabs"> | </ul>
> entryLevel = 0
> 1 = TMENU
> 1 {
> wrap = <ul class="tabs"> | </ul>
>
> noBlur = 1
> expAll = 1
>
> NO = 1
> NO {
> wrapItemAndSub = <li>|</li>
> }
>
> ACT = 1
> ACT < .NO
>
> ACT {
> wrapItemAndSub = <li id="home"> | </li>
> }
> }
You need a lib.menu_2 or something else like lib.menu_sidebar that you
map on your sidebar. Then use lib.menu_2.entryLevel = 1 and define
lib.menu_2.1 = TMENU
lib.menu_2.1 {
...
}
lib.menu_2.2 < lib.menu_2.1
lib.menu_2.3 < lib.menu_2.2
and as many as you need sublevels.
HTH
--
Xavier Perseguers
DBAL-Member
http://xavier.perseguers.ch/en/tutorials/typo3.html
More information about the TYPO3-english
mailing list