Hi !
I have created a sub menu (e.g. About Us > Company profile) and checked the "Show as expanded" for it's parent menu (e.g. About Us) but the drop down menu not showing in the front end, any idea ?

CommentFileSizeAuthor
#2 issue-2617264.patch684 bytesneardark

Comments

simone960 created an issue. See original summary.

neardark’s picture

Status: Active » Needs review
StatusFileSize
new684 bytes

This patch addresses this issue, though more work needs to be done on menus.

simone960’s picture

Thanks ! But it seems to solve partly.

On the frontpage, it works well. However, when you are on sub menu page (e.g go to "Company profile" page), the sub menu doesn't work properly any more, you can try to click several times, possibly only the first time when you first access the page it shows the sub menu, then the sub menu no longer appear if you continue to click several times,

I think the sub menu is important to many. Websites that constructed purely 1 level are few. Hopefully this can be fully solved in the next release. Thanks anyway.

neardark’s picture

It seems core's Quick Edit module is interfering, though I haven't had a chance to dig in and find out what's going on. @simeone960 I'll provide a patch as soon as I can.

simone960’s picture

Thanks @neardark for your help really. We actually rely fully on the Bootstrap theme to building websites nowadays. Once the bootstrap theme is more ready and stable, I believe many will move on to Drupal 8. This time around the people will start using Drupal 8 much quicker and earlier than Drupal 7 when it was first released I believe, as Views, CKEditor and many other modules already fully integrated into Drupal 8. However, thanks for the efforts to make things happen. You all are awesome !

Greg Sims’s picture

Thank you for your efforts @neardark! I am planning an upgrade from D6 to D8 and bootstrap is the leading candidate. We have a website with Lots of content so sub menus are important as you can see here -- www.RayStedman.org. I look forward to bootstrap being wildly successful on D8!

Thanks again, Greg

simone960’s picture

I have tried to uninstall the "Quick Edit" as @neardark pointed out the interfering module and indeed the sub menu works perfectly once uninstalling the module. I think that's the way to get the sub menu works for the time being before proper patch is provided. However, the sub menu works well for anonymous users without uninstalling the Quick Edit module.

markhalliwell’s picture

Version: 8.x-3.0-alpha1 » 8.x-3.x-dev
Category: Support request » Bug report
Status: Needs review » Needs work
Issue tags: +Needs reroll

Needs a re-roll since #2624420: Restructure code into OO has gone in.

  • markcarver committed 5e2173b on 8.x-3.x
    Issue #2617264 by neardark, markcarver: Sub menu not showing
    

  • markcarver committed 093e2bc on 8.x-3.x
    Issue #2617264 by neardark, markcarver: Sub menu not showing
    
markhalliwell’s picture

Status: Needs work » Fixed
Issue tags: -Needs reroll

Status: Fixed » Closed (fixed)

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

bloomt’s picture

I am confused as to why this is marked as fixed? Dropdowns are not working for me, the top level link is working as a link and not opening the dropdown.

Here is an example :

I have a menu link (link 1) and then a couple links nested in that link (link 2 and link 3) Clicking on link one does not open the menu to get to link 2 and 3. Instead link 1 goes to the link 1 page.

Does anyone have any insight?

bloomt’s picture

I solved my own issue, I needed to set the "Maximum number of menu levels to display" to more than one on the menu block itself.

morgo’s picture

How did you fix your issue @bloomt the dropdown menu is not working for me!, i just want when i hoover my mouse over the menu it dropdown!

markhalliwell’s picture

morgo’s picture

thanks for fast reply @markcarver , also it would be nice if it become an option in the theme, so you would be able to choose between both hover and non-hover-able menu! i can simply use some module to fix this, but i always like to use the bootstrap base actions.

markhalliwell’s picture

No.

I agree with @mdo's decision on why dropdown's should be clickable and not hover-able. Additionally, that kind of complexity just increases the project's technical debt and leads to many more interpretations/one-off-use-cases as you can see in #1893532: [bootstrap][policy][7.x-3.x] Navigation/Menus (which is also partially why that issue is postponed).

murthi9772’s picture

Version: 8.x-3.x-dev » 7.x-3.5
Assigned: Unassigned » murthi9772

-

markhalliwell’s picture

Version: 7.x-3.5 » 8.x-3.x-dev
Assigned: murthi9772 » Unassigned
murthi.karuppan’s picture

murthi.karuppan’s picture

.

umeshpatil’s picture

Hello All,

To solve both the issues please follow below solutions,

1. To make it visible go to block layouts and find that block then configure it. Upon doing that, you will find Menu Levels collection box open it and change the level and save it. It will show your submenu.

2. To open your menu on hover, not on click just add this CSS,

ul.nav li.dropdown:hover > ul.dropdown-menu {
    display: block;
}

And done.

ikeigenwijs’s picture

@umeshpatil: thx mate

abdulgaffar’s picture

#23
Thanks! @umeshpatil's solution worked for me.

learnbydrop’s picture

This code will resolve the issue check in http://www.stayinpg.in

jQuery('.dropdown-toggle').mouseover(
function() {
jQuery('.dropdown-menu' ).css( "display","block" );
}
);
jQuery('.dropdown-menu').mouseover(
function() {
jQuery('.dropdown-menu' ).css( "display","block" );
}
);
jQuery('.dropdown-toggle').mouseout(
function() {
jQuery('.dropdown-menu' ).css( "display","none" );
}
);

review: http://www.stayinpg.in