Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have 2 parent menu items, each of which has children menu items.
I've disabled the parent items. When disabling parents, drupal automatically disables the children items.
Strange thing is, I'm noticing that these disabled children are rendering on the UI.
Comment | File | Size | Author |
---|---|---|---|
#6 | 2876440-5.patch | 1.54 KB | henry.odiete |
Issue fork superfish-2876440
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
v.belous CreditAttribution: v.belous commentedComment #3
markdcI'm also experiencing this. It's definitely unexpected, undesired behaviour. No way to isolate and hide them with CSS as they get classes based on where SF puts them and not their original menu depth. This means having to disable all children as well. *sigh*
Comment #4
henry.odiete CreditAttribution: henry.odiete commentedI ran into this same issue and found a fix for it. The reason it happens in the first place is because the menutreeparameters only take into account enabled links so their parents get mixed up when determining thier menu root. So i removed the only enabled links so all the tree is rendered and then went into the supefish.theme.inc file to make adjustments to hide/show menu based on if the link is enabled.
Comment #5
henry.odiete CreditAttribution: henry.odiete commentedComment #6
henry.odiete CreditAttribution: henry.odiete commentedComment #7
timfletcher CreditAttribution: timfletcher as a volunteer commentedThanks, #6 worked for my site.
I had a disabled parent item with active children, which would still show up as siblings of the parent in the menu structure.
Comment #8
akalam CreditAttribution: akalam commentedI can confirm the patch on #6 fixed the issue for me.
Thank you @henry.odiete !
Comment #9
Anna D CreditAttribution: Anna D as a volunteer and at ASYNC life commented#6 works for me. Thanks
superfish:^1.4
Comment #10
Anna D CreditAttribution: Anna D as a volunteer and at ASYNC life commentedComment #12
LOBsTerr CreditAttribution: LOBsTerr at European Commission and European Union Institutions, Agencies and Bodies commentedThank you for your contribution