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.
I am struggling on find a way to set the active trail in the primary menu for child nodes of menu items.
For example lets say I have the following structure:
Resources
-News
--News article 1 (not in menu)
--News article 2 (not in menu)
About
-Analysts
--Analyst 1 (not in menu)
--Analyst 2 (not in menu)
So on the pages that aren't in the menu, but are technically child pages, how do I get "active-trail" set on the top level item?
Any help would be greatly appreciated.
Comments
Comment #1
kohashi CreditAttribution: kohashi commentedI ran into this problem and used https://drupal.org/project/menu_position to solve it. Create a rule that targets your News articles and one for Analyst. Then set menu position to News and Analysts respectively. Hopefully this helps.
Comment #2
JohnAlbin