Making a view with menu child items

Set the contextual filter for field "Menu: Parent menu link id", this will let you select a parent page as a filter. The php argument code can be:

$current = end(menu_get_active_trail()); return $current['mlid'];

Thanks to Stafan,http://drupal.stackexchange.com/questions/2264/how-can-i-create-a-view-o...

Requires that you have menu_node and menu_node_views installed.

Tags:

Share: