Expanded option has no effect

Created on 23 May 2022, almost 3 years ago
Updated 9 May 2023, almost 2 years ago

Problem/Motivation

The "Take "Expanded" option into effect." and native "Expand all menu links" configuration options have no effect.

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡«πŸ‡·France Grimreaper France πŸ‡«πŸ‡·

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States redeight

    Not sure if it is related, but checking the "Expand all menu links" option in the block configuration doesn't even stick when saving. I checked the configuration for the block itself and that value is set to "FALSE" even when I just saved it turned on.

  • Status changed to Postponed: needs info over 1 year ago
  • ivnish Kazakhstan

    How to test it? Can you explain?

  • πŸ‡©πŸ‡ͺGermany drupalbubb

    Create a menu, add the block using superfish, enable "Expand all menu links" and save. Setting is not saved/loaded.

  • πŸ‡©πŸ‡ͺGermany drupalbubb

    Create a menu, add the block using superfish, enable "Expand all menu links" and save. Setting is not saved/loaded.

  • πŸ‡¨πŸ‡¦Canada OMD

    Having the same issue. Checking the box for "Expand all menu links" in Menu levels settings section of the Configure Block for my superfish menu, has no effect upon save. Opening the Config back up again show the box as unchecked again. Not possible to save the block with this box checked it seems.

  • Status changed to Active 9 months ago
  • Assigned to lobsterr
  • πŸ‡§πŸ‡ͺBelgium lobsterr

    I have done the investigation.

    This option "Take "Expanded" option into effect." is supposed to work with many other options like:
    - Enable multi-column sub-menus.
    - Start from depth.
    - Levels.
    - Add cloned parent links to the top of sub-menus.

    It is very special case, I am not sure that a lot of sites actually using it, but we will keep it just in case they do and I don't want to invest my time to a feature, which used very rarely.

    I have fixed saving "Expand all menu links" and I will try to implement now solution for it.

  • πŸ‡§πŸ‡ͺBelgium lobsterr

    ok, I was wrong. Ignore my previous comment, I need more time to understand, how it should work.

  • πŸ‡§πŸ‡ͺBelgium lobsterr

    I will explain how expanded options are working.
    1) By default no "Show as expanded" option from a menu item is taking account. It means the menu will be displayed with ALL submenus!
    2) In order to take into account any expanded option we need to use "Take "Expanded" option into effect.". In this case we take into account "Show as expanded" and show children if it is checked.
    3) I have fixed saving of "Expand all menu links", if this option is checked an option "Show as expanded" of any menu item will be ignored

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024