Drupal 9 problem: show only children of active item not working

Created on 12 June 2023, over 1 year ago
Updated 11 May 2024, 8 months ago

Problem/Motivation

Found this old issue: https://www.drupal.org/project/menu_block/issues/927380 Show only children of active item Needs work
I have this problem, but only in Drupal 9 menu block.

Steps to reproduce

My menu:
-item 1
--item 1.1
---item 1.1.1
----item 1.1.1.1
----item 1.1.1.2
---item 1.1.2
----item 1.1.2.1

In Drupal 7 is working:
Initial level: 3rd level (ex. item 1.1.1)
Fixed parent level: item 1
Maximal depth: 1
Follow the active menu item
First level will be children of active menu

I can see, when in term page 1.1.1, the menu:
-item 1.1.1.1
-item 1.1.1.2

In Drupal 9 I try (and it doesn't work)
Visibility initial level: 3 (ex. item 1.1.1)
Levels to be exibited: 1
Fixed parent level: Item 1
Follow the active menu item
Initial visibility level will be: sons of active menu level

- if I check "Expand all menu links", it shows all links at this menu level.
-item 1.1.1.1
-item 1.1.1.2
-item 1.1.2.1

- if i don't check "Expand all menu links", it shows nothing.

Can You help me?

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Postponed: needs info

Version

1.0

Component

User interface

Created by

🇧🇷Brazil claudia sotto

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @claudia sotto
  • 🇯🇴Jordan suhaib_hija

    Did you find any solution for this issue on D9 ?

  • 🇧🇷Brazil claudia sotto

    The solution I found was not using this module, neither menus.
    I made the menus with taxonomy and views, filtering the blocks with the parent term. As I use term pages, it worked.
    And I created new fields (new URL, new target - _blank or not) on the vocabularies to redirect some links, as the menu does. In the view block display, these links are redirected if necessary.

  • 🇨🇦Canada joelpittet Vancouver

    This doesn't sound like critical, and it is hard to tell if it's a bug or a feature or a support request. I will leave it as a bug request for now and hopefully someone confirm the steps to reproduce

  • Status changed to Postponed: needs info 8 months ago
  • 🇩🇪Germany Anybody Porta Westfalica

    @Claudia Sotto what does

    but only in Drupal 9 menu block

    mean?
    Are you talking about "modern Drupal" (Drupal 8+ vs. Drupal 7 or is this working in Drupal 8 and 10 for example?

    Could you please clarify this or remove the prefix from the title, if it's about 8.1.x. in general? Thanks!

Production build 0.71.5 2024