[TYPO3] Menu with section header

Herbert Roider herbert.roider at utanet.at
Tue Jan 23 00:34:21 CET 2007


Tim Boesenkool wrote:

> Hey List
> 
> I need a little help refining a menu structure please.
> 
> I have a horiziontal menu and a vertical sub nav. What I'm having
> trouble with is getting the section heading from the horizontal menu
> to appear at the top of the vert list.
> When i change my ' temp.menu_1.entryLevel = 1 '  to 0 or -1 I end up
> grabing too much of the preceding level menu. Below I have included my
> menu setup, please bear in mind there is still evidence of tinkering
> left in it. Just trying to get the section title to display for now.
> 
> Regards
> Tim
> 
> ex.
>  - main horiz nav  -
> section 1 | section 2 (selected) | section 3
> 
>  - Sub nav -
> Section 2 (as menu title)
>     Section 2.1
>     Section 2.2
>     Section 2.3
>        Secton 2.3 sub
>     etc....
> 
> 
> 
> 
> # Menu 1 cObject
> temp.menu_1 = HMENU
> # temp.menu_1.special = rootline
> temp.menu_1.wrap = <UL> | </ul>
> temp.menu_1.entryLevel = 1
> 
>   # First level menu-object, textual
> temp.menu_1.1 = TMENU
> # temp.menu_1.1.wrap = <ul> | </ul>
> temp.menu_1.1 {
>     # Normal state properties
>   NO.allWrap = <li> | </li>
>     # Enable active state and set properties:
>   ACT = 1
>   ACT.allWrap = <li> | </li>
> }
> 
> # Spacer Code Level 2
>    temp.menu_1.1.SPC = 1
>    temp.menu_1.1.SPC < subparts.menu_1
>    temp.menu_1.1.SPC.doNotShowLink = 0
>    temp.menu_1.1.SPC.doNotLinkIt = 1
>    temp.menu_1.1.SPC.allWrap =  <DIV>&#171;&nbsp; | &nbsp;&#187;</DIV>
> 
>   # Second level menu-object, textual
> temp.menu_1.2 = TMENU
> temp.menu_1.2.wrap = <ul> | </ul>
> temp.menu_1.2 {
>     # Normal state properties
>   NO.allWrap = <li> | </li>
>     # Enable active state and set properties:
>   ACT = 1
>   ACT.allWrap = <li> | </li>
> }
> 
>   # Thirdlevel menu-object, textual
> temp.menu_1.3 = TMENU
> temp.menu_1.3.wrap = <UL> | </UL
> temp.menu_1.3 {
>     # Normal state properties
>   NO.allWrap = <li> | </li>
>     # Enable active state and set properties:
>   ACT = 1
>   ACT.allWrap = <li> | </li>
> }

Hi,
this typoscriptcode renders the title of the second level. You can set this
above the menu:

temp.menu_title = TEXT
temp.menu_title.data = leveltitle : 2 
temp.menu_title.wrap = <div class="subsubmenuhead"><p> | </p></div>

regards
Herbert




More information about the TYPO3-english mailing list