We had a node in two menus, our primary links and footer menus. We want menu-path-raw token to use the menu path from the menu entry configured in the node edit form. But the node_token_value function uses the first menu entry it finds in the menu_links table. Attached patch uses the configured parent menu if available.

CommentFileSizeAuthor
token_menu.patch886 bytesbkalbs

Comments

dave reid’s picture

This is a duplicate of #295177: Use proper menu link loading for node menu links. Please see the patch in #11 and if you can, test back and report.

dave reid’s picture

Status: Active » Closed (duplicate)