Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的标题非常具体地说明了我正在寻找的东西。
如果想得到菜单项“BA”的nid。我对使用任何模块都不感兴趣。必须通过代码解决这个问题。
感谢帮助 !莫吉奥
In your node you will have book element which represents menu link.
book
You can do this:
$book_link = $node->book; $next_link = book_next($book_link); // next item in flattened tree $first_child_node = menu_get_object('node', 1, $next_link['link_path']);