Цитата:
Сообщение от Илья
Вопрос в том, как определить на каком уровне мы в настоящий момент находимся и как сделать условие в коде в зависимости от жтого уровня.
|
Цитаты из доки:
NOTE: Don't set .entryLevel for a HMENU when using .special property! Also be aware that this selects pages for the first level in the menu.
This will generate a menu of all pages with pid = 35 and pid = 56.
20 = HMENU
20.special = directory
20.special.value = 35, 56
If .value is not set, the default pid is the current page.
Т.е. .entryLevel убрать, .special = directory оставить, а special.value не указывать.
Тогда меню будет строиться с текущего уровня.
subparts.LEFTNAV= HMENU
subparts.LEFTNAV.special = directory
subparts.LEFTNAV.1 = TMENU
Ну а чтоб было видно нижестоящие уровни их надо прописать subparts.LEFTNAV.2, subparts.LEFTNAV.3, ...