The Views Menu Children Filter module adds a contextual filter to Views for
showing child nodes of a specified parent node in the menu system. It also adds
a sorting option based on the menu link's weight.
Related core issues
This module helps to work around missing features in core:
- #2804335: Provide menu item integration for views
- #2777749: Add menu_link_content support into views
- #2315773: Create a menu link field type/widget/formatter
Please help to fix them, so one day these features will be available in core!
Required Modules
The Drupal Core "Views" module is needed.
Installation
- Run
composer require drupal/views_menu_children_filter
- Run
drush en views_menu_children_filter
Configuration
When you add the "Menu Children" contextual filter to your custom view, you
can configure the menus you wish to search for inside the filter settings.
Limitations
Currently, this module only works for node entities. Also, the menu links need
to be created inside the node, so they have the "entity:" uri prefix.
"internal:" is NOT currently supported.
Version Information
The 8.x-1.x branch is for bug fixes only, with the aim for a stabled Drupal 8 release.
The 8.x-2.x branch is abandoned and should not be used. Users can safely upgrade to 8.x-1.0-rc1 or to 3.0.x-dev.
The 3.0.x-dev branch is for all new features and development, with full Drupal 9 support.
Alternative modules
- https://www.drupal.org/project/menu_link (aka #2315773: Create a menu link field type/widget/formatter) which seems most robust
- https://www.drupal.org/project/menu_entity_index (for more advanced cases)
- https://www.drupal.org/project/views_menu_relationship (most lightweight, only for nodes)
Project information
- Module categories: Site Structure
- 5,164 sites report using this module
- Created by cravecode on , updated
- Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
Releases
Development version: 3.0.x-dev updated 25 Mar 2024 at 07:04 UTC
Development version: 8.x-1.x-dev updated 1 Oct 2022 at 12:34 UTC
Development version: 7.x-1.x-dev updated 30 Jun 2017 at 13:34 UTC