Active a menu  when the menu entry is a view page I have a section (call news) that have an "home page". This home page is created via "views" and via "views" I have insert a link item into "main menu" menu based on path (/news). When I go to /news the relative entry in "main menu" is active (the &lt;li&gt; item has "active-trail" class). All works.

How can I active the same menu when I'm into a node of type news ? I have read that I need to use menu_tree_set_path() into a hook_preprocess_page(). So I have tried to add this line into THEME_preprocess_page(&amp;$vars) : 

menu_tree_set_path('main-menu','/news');


but it does not work. I have tried with:

menu_tree_set_path('main-menu','news');


Same result. Not working. 

In all my search, all tutorials tells to set for the second parameter of menu_tree_set_path a node/NID or a taxonomy/term/NID, but I have not this node/nid. I have a view page path. 

So, How can I do it ?  Thanks.
I guess you could achieve this with Menu Position module, where you can set an active parent for specific node/content types. 

https://www.drupal.org/project/menu_position