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.

CommentFileSizeAuthor
#6 2876440-5.patch1.54 KBhenry.odiete
#4 2876440-4.patch1.76 KBhenry.odiete

Issue fork superfish-2876440

Command icon 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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hudat created an issue. See original summary.

v.belous’s picture

Assigned: hudat » v.belous
markdc’s picture

I'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*

henry.odiete’s picture

FileSize
1.76 KB

I 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.

henry.odiete’s picture

Status: Active » Needs review
henry.odiete’s picture

FileSize
1.54 KB
timfletcher’s picture

Thanks, #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.

akalam’s picture

I can confirm the patch on #6 fixed the issue for me.
Thank you @henry.odiete !

Anna D’s picture

#6 works for me. Thanks

superfish:^1.4

Anna D’s picture

Status: Needs review » Reviewed & tested by the community

LOBsTerr’s picture

Status: Reviewed & tested by the community » Fixed

Thank you for your contribution

Status: Fixed » Closed (fixed)

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