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を取得したい場合。モジュールの使用には興味がありません。この問題をコードで解決する必要があります。
手伝ってくれてありがとう !もぎお
ノードには、bookメニュー リンクを表す要素があります。
book
あなたはこれを行うことができます:
$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']);