Closed (fixed)
Project:
Bootstrap
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Oct 2013 at 20:03 UTC
Updated:
14 Mar 2017 at 13:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
el7cosmosNot just the class then, submenu shouldn't be rendered also
Comment #1.0
el7cosmosedit.
Comment #2
el7cosmosComment #3
shaundychkoThanks el7cosmos, that works! I also removed the data-target attribute since that's also obsolete.
Comment #4
valkum commentedwe should move depth == 1 further down. Because of the navbar module exclusion.
data-target should be set i think. See comment above the data-target line.
Comment #5
valkum commentedWhat do you think about this patch?
Comment #6
el7cosmosThats nice @valkum
I'll go with #5, and yes, data-target should be set
Comment #7
markhalliwellThanks @valkum!
Committed a8cefe4 to 7.x-3.x:
Comment #9
drummRemoving issue summary for #2097987: remove the summary field from issues.
Comment #10
hkirsman commentedSo could somebody explain why Bootstrap still has submenus: http://getbootstrap.com/components/#navbar-default ?
Comment #11
hkirsman commentedJust asked the Bootstrap guys and there is 1 level submenu:
https://github.com/twbs/bootstrap/issues/14944
Just that nesting does not work.
Comment #12
cdonner commentedI believe it has been shown that this issues was caused by a semantic misunderstanding and that submenus still exist in Bootstrap, albeit only one level down from the nav bar. Is there a plan to restore this functionality in the Drupal theme?
Comment #13
markhalliwellThis issue was about removing the
.dropdown-submenusupport (see the patch). It did not take out dropdown menu from the main nav links at all.Top level menu item
.nav li a-- Dropdown menu item
.nav li .dropdown li a---- Sub menu item
.nav li .dropdown li .dropdown-submenu li a(this is what was removed in BS3)This project attempts to keep parity with the BS framework. So no, not unless BS itself decides to put them back in. This is, however, very unlikely to happen:
The link in the issue summary (http://stackoverflow.com/a/18024991/1226717), provides examples for how to accomplish this manually in your sub-theme. Furthermore, one can easily reverse engineer the patch in #5 to restore the previous functionality if necessary.
Comment #14
murthi9772 commented-
Comment #15
murthi.karuppan commented.
Comment #16
murthi.karuppan commentedNote: Replace all
THEMENAMEimplementations with the machine name of your sub-theme.jquery.smartmenus.bootstrap.cssto./THEMENAME/css/jquery.smartmenus.bootstrap.css.jquery.smartmenus.jsto./THEMENAME/js/jquery.smartmenus.js.jquery.smartmenus.bootstrap.jsto./THEMENAME/js/jquery.smartmenus.bootstrap.js.THEMENAME.infofile:template.phpfile (or dedicated./THEMENAME/templates/menu/menu-link.func.phpfile) add the following code: http://pastebin.com/2N3m5FBp*edited for brevity and clearer instructions
Comment #17
markhalliwell@murthi.karuppan, please stop spamming all three issues with super long and unnecessarily verbose posts.