Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Menu Firstchild

6,076 sites Security covered
View on drupal.org

This module allows you to create menu parent items that automatically link to their first viewable child item. Instead of assigning a direct path, you can designate a link as a "first child" parent.

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.

Instructions

  1. Install the module like any other module.
  2. Navigate to admin/structure/menu and choose the menu you want to customize.
  3. 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:

  1. Try Menu Breadcrumb.
  2. Read #732370: Go as deep as possible when building the active trail.

Contact

This module is sponsored by Absyx.
If you like this module, please review Absyx.

2.x Branch for Drupal 8+

Instructions

  1. Install the module like any other module.
  2. Navigate to admin/structure/menu and choose the menu you want to customize.
  3. Add a new menu link or edit an existing link then check the "First child" checkbox to turn it into a parent item linking to its first accessible child.

Activity

Total releases
1
First release
May 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Release date
2.2.0 Stable May 11, 2025