By default, Drupal requires that you enter a path for each menu link you add/edit from the Menu administration page.
There are cases you may want to create a parent item, without any path, that simply links to its first viewable child item.
Menu Firstchild provides this functionality.
Installation
Copy the menu_firstchild folder to your sites/all/modules directory.
Navigate to admin/build/modules and enable the module.
Navigate to admin/build/menu and click on the menu you want to customize.
Add a new menu link or edit an existing link then enter <firstchild> as the link path to turn it into a parent item linking to its first accessible child.
Known issues
Breadcrumb might be wrong. This is not a bug of Menu Firstchild but a problem linked to Drupal's weak default breadcrumb system.
To solve breadcrumb issues, whether using Menu Firstchild of not:
- Install Menu Breadcrumb.
- Read #732370: Go as deep as possible when building the active trail, apply the provided patch and please ask for the patch to be committed!
Contact
This module is sponsored by Absyx.
If you like this module, please review it and add it to favorites at drupalmodules.com.
Downloads
Project Information
- Maintenance status: Actively maintained
- Development status: Under active development
- Module categories: Administration, Path Management, Site Navigation
- Reported installs: 4137 sites currently report using this module. View usage statistics.
- Last modified: November 7, 2011