[Typo3] Menu: Level 1 in the header and level 2 on the left side

christian oettinger christian.oettinger at gmx.de
Tue Jun 21 20:52:39 CEST 2005


Hi mamax,

I think what you are looking for is
MENU2.entryLevel = 1

So just define a new HMENU object and tell it with this code to start at 
level one, which is the second level of your Navigation (level 0 would 
be the code for the first level).
For further help take a look at my (old) code of a text menu displaying 
second and third level of my navigation (First level is displayed by 
another HMENU object at another place - so the same as at your site). 
The syntax is a bit different than yours but you can just adjust it. 
(The ACT and NO-thing is just to define normal and active state of the 
menu).


page.10 = HMENU
page.10.entryLevel = 1
page.10.1 = TMENU
page.10.1 {
    fontColor = {$dunkelgruen}
    expAll = 0
    NO.linkWrap = <DIV class="zweiteebene"> |</DIV><BR>
    NO.ATagBeforeWrap = 1
    ACT < .NO
    ACT = 1
    ACT.linkWrap = <DIV class="womanist2"> | </DIV><BR>
    ACT.ATagBeforeWrap = 1
}

page.10.2 = TMENU
page.10.2.target = _top
page.10.2.wrap = | <img src="clear.gif" width=11 height=5 border=0><br>
page.10.2 {
    NO.linkWrap =  <DIV class="dritteebene">| </DIV><BR>
    NO.ATagBeforeWrap = 1
    ACT < .NO
    ACT = 1
    ACT.linkWrap = <DIV class="womanist3"> | </DIV><BR>
    ACT.ATagBeforeWrap = 1
}

hope this helps
greetings from munich!

oe (christian)


mamax wrote:

> Hi all,
> 
> I built a horizontal text menu showing the first level of my page tree.
> How can I define a second menu object handling the second level of the same
> page tree
> (displayed on the left side of the screen)?
> 
> Thats the definition of my horizontal menu object:
> 
> MENU1 = HMENU
>   MENU1.special = directory
>   MENU1.special.value = 2
>   MENU1.1 = TMENU
>   MENU1.1.NO = 1
> 
> // MENU2 = ???
> 
> --
> Markus Massak
> dataport IT.Netzwerk
> 
> www.dataport.at
> 
> 
> 



More information about the TYPO3-english mailing list