[TYPO3] Menu of subpages

Tomasz Rakowski raczek at open.infi.pl
Sat Sep 23 17:10:29 CEST 2006


Tomasz Rakowski napisał(a):
> Tapio Markula napisał(a):
>> Makrela Corporation kirjoitti:
>>> Hello group!
>>>
>>> I have a menu in BE like that:
>>>
>>> RooT
>>> -Level1
>>>  - Level1.1
>>> -Level2
>>>  -Level2.1
>>>  -Level2.2
>>>   -Level2.2.1
>>> -Level3
>>>  -Level3.1
>>>  -Level3.2
>>>
>>> I want to display on my site in three different places three levels 
>>> of menu presented above,
>>> so let's say in the place A I want to have subpages of Level1, in the 
>>> place B subpages of
>>> Level2 and in the place C subpages of Level3.
>>>
>>> Unfortunately I cant get it working.
>>> Here is the sample of my TS:
>>>
>>> temp.menu_1 = HMENU
>>> temp.menu_1.special = directory
>>> temp.menu_1.special.value = 51
>>>
>>>
>>> temp.menu_1.1 = TMENU
>>> temp.menu_1.1 {
>>>   # Normal state properties
>>>   NO.allWrap = <div class="menu_1">|</div>
>>>
>>>   # Enable active state and set properties:
>>>   ACT = 1
>>>   ACT.allWrap = <div class="menu_1">|</div>
>>>
>>> }
>>>
>>>   # Second level menu-object, textual
>>> temp.menu_1.2 = TMENU
>>> temp.menu_1.2 {
>>>
>>>   # Normal state properties
>>>   NO.allWrap = <div class="menu_2">|</div>
>>>
>>>   # Enable active state and set properties:
>>>   ACT = 1
>>>   ACT.allWrap = <div class="menu_2">|</div>
>>>
>>>   CUR=1
>>>   CUR.allWrap = <div class="menu_2">|</div>
>>>
>>> }
>>>
>>> The code generates subpages, but if the subpage (Level2.2) has 
>>> another subpage (Level2.2.1) it won't be displayed!
>>> If you will try to do it with temp.menu_1.special = list instead of 
>>> directory it will display also parent subpage (Level2)
>>> which I don't want to be shown - but in this case clicking on 
>>> Level2.2 will display subpage Level2.2.1.
>>>
>>>
>>> Looking forward to hearing from you
>>> racco
>>>
>>
>>
>> try
>>
>>
>> [PIDinRootline = ...]
>> entryLevel=-1 or entryLevel=-2
>> expAll=1
>>
>> with combinations
>> first tree level
>> second how - one or two from the lowest levels
>> with the third setting you can get rendered all menu items starting 
>> from desiered level
> 
> 
> Hello my friend!!
> 
> Thx very much, your tip with entryLevel=-1 or entryLevel=-2 has solved 
> my problems :)
> 
> have a nice day!
> racco


unfortunately it doesn't work as it should, here's the explanation:

my page tree [pid]


Root [37]
-Level1 [51]
  - Level1.1 [39]
   - Level1.1.1 [40]
   - Level1.1.2 [41]
   - Level1.1.3 [42]
  -Level1.2 [47]
   - Level1.2.1 [48]
   - Level1.2.2 [49]



My TS code:


temp.menu_1 = HMENU
temp.menu_1.special = directory
temp.menu_1.special.value = 51
temp.menu_1.entryLevel = -3

This codes generates menu from page [51], so menu consisting of pages 
[39] and [47] is displayed at the first.
When you click on [39] submenu appears.
But when you click on any of supages of [39], ie: [40] it will be 
displayed but menu goes back to situation as if it were generating menu 
only for page [51] - so subpages disappear from menu.


Would you be so kind and explain me more explicitly how should I reach 
my goal? I would really appreciate this.

thx in advance
racco




More information about the TYPO3-english mailing list