开发者

Drupal: expand menu if node url is in menu-item

开发者 https://www.devze.com 2023-04-03 05:24 出处:网络
I\'ve got menu: London --Home --News(shows all London news. Path is /london/news/) --About NewYork --Home --News(shows all NY news. Path is /ny/news/)

I've got menu:

London

--Home

--News(shows all London news. Path is /london/news/)

--About

NewYork

--Home

--News(shows all NY news. Path is /ny/news/)

--About

Normally, when i click on News menu-item in London it shows all new related to Londo开发者_开发技巧n. And menu expands. But when I click to news(/london/news/new123/: menu folds. I want menu always be expanded if node is child of menu-item.


I think the Menu Trails module lets you do that without having to write any code.

0

精彩评论

暂无评论...
验证码 换一张
取 消