The dropdown solution for Plone since 2007.
You will get the dropdown menus for those items in global navigation that have the subitems. Submenus are built based on the same policy as the Site Map, so it will show the same tree as you would get in the Site Map or navigation portlet being in appropriate section.
Dropdown menus are build based on the same policy as the Site Map, so it will show the same tree as you would get in the Site Map or navigation portlet being in appropriate section. This means - no private objects for anonymouses; no objects, excluded from the navigation - exactly the same behavior you would expect from Site Map or navigation portlet.
As any addons, please follow the official install documentation: http://docs.plone.org/manage/installing/installing_addons.html
While disabling clicking the links with children, one may want the links in the global navigation bar to be clickable nevertheless
What you need is to customize the browser/static/dropdown.js
file like the following:
jQuery(function ($) { $('#portal-globalnav ul .noClick').click(function (e) { e.preventDefault(); }); });
Note that we have added ul in the jQuery selector. This will stop clickability of the links in the dropdowns only, but not the section's link in the global navigation bar itself.
- Issue Tracker: https://github.com/collective/webcouturier.dropdownmenu/issues
- Source Code: https://github.com/collective/webcouturier.dropdownmenu
We'd be happy to see many commits, forks and pull-requests to make webcouturier.dropdownmenu even better.
If you are having issues, please let us know. Open an issue or send us an e-mail to [email protected].
Authors:
Contributors:
- Wichert Akkerman [wichert] Simplon
- JeanMichel FRANCOIS [toutpt] Makina-Corpus
- Thomas Desvarin [thomasdesvenain] Ecréall
- Maurits van Rees [maurits]
- David Glick [davisagli]
- Matt Halstead [matthal]
- Leonardo J. Caballero G. [macagua]
- Florian Schulze [fschulze]
- Jens Klein [jensens] BlueDynamics Alliance
- Peter Holzer [agitator] BlueDynamics Alliance
- Johannes Raggam [thet] BlueDynamics Alliance