[TYPO3] Menu of subpages
raczek at open.infi.pl
Tue Sep 26 15:42:13 CEST 2006
Rakowski Tomasz napisał(a):
> JoH napisał(a):
>>> My menu:
>>> - Level1.1
>>> So maybe I have wrong approach, because 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.
>>> How to do this without special = directory or special = list.
>>> I don't want it to be dependent from actual position in rootline.
>>> Maybe you have some solution for this?
>> So your initial question was a bit misleading, since "Level1" doesn't
>> to be a real level in this case but just a page on the same level as
>> "Level2". If you need just the subpages of these 3 different main
>> pages you
>> can do this with "special = list" or "special = directory", but it
>> will not
>> work if you expect the next levels to expand automatically.
>> One solution could be to use entryLevel and set it to the level of
>> those 3
>> main pages and remove the pages you don't want to see in the menu.
>> entryLevel = 1
>> excludeUidList = 12,34,56
>> This is just the opposite of special = list, since you don't list the
>> you want to see but those you want to be removed and you will preserve
>> automatic expansion of sublevels this way.
> Yes, but when I do so:
> temp.menu_aa = HMENU
> temp.menu_aa.entryLevel = 1
> temp.menu_aa.excludeUidList = 51
> It is dependent from where I am in the rootline.
> It would be perfect if I could point that I want to start from pid=xxx.
> Because now the menu changes depending on from which tree(level1,
> level2, level3) the chosen item will be.
> I want to have in the place A on the site always the pages from
> level1 so ie. level1.1
Ok, here goes my solution.
Everything was ok in my previous TS codes beside entryLevel definition.
It should be set to 1 no to negative values.
temp.menu_struktura = HMENU
temp.menu_struktura.special = directory
temp.menu_struktura.special.value = 50
temp.menu_struktura.entryLevel = 1
And that is all. It works just fine.
Four days, one digit of change...
greetings and thx for your help!!
More information about the TYPO3-english