Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The items in my main menu are dummy-entries build with the module special_menu_items. These menu items get the path . I want to mark a top-level entry as active, if a special path is used, but it is not feasible, as context links to the menu path , which exists a few times in the main menu. In the end there is no active class at all in the menu tree.
Comments
Comment #1
Ludo.RI have the same problem.
I have 4 main sections, let's say : Food, Sport, TV, News.
They are all top level menu items but are not clickable, I've built them with "
special_menu_items
" and set them as "<nolink>
".When I try to create a context based on these menu items, they are all recorded in database as "
<nolink>
", so the context module cannot make any difference between these 4 contexts.Shouldn't the context module store menu item's mlid instead of the paths?
Comment #2
rooby CreditAttribution: rooby commentedYes this would be fixed by using mlid instead of path for the reactions.
There is an issue for that here: #1042538: Menu & Breadcrumb Conditions & Reactions use menu selection but process based on path. Can cause counter intuitive results!
marking as duplicate of that issue.