Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Menu Firstchild

Security covered Under active development 5,833 sites

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.
Drupal 10–11

Ask your assistant about Menu Firstchild

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • menu_link_content Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
5
Tracked since
Feb 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
2.2.0 Stable 10–11 May 11, 2025
2.1.1 Stable 9–10 Nov 10, 2024
2.2.0-alpha1 Pre-release 10–11 Oct 11, 2024
2.1.0 Stable 9–10 Oct 29, 2023
2.1.0-rc2 Pre-release 8–10 Feb 18, 2023