mishunov / webcouturier.dropdownmenu

7 stars 24 forks source link

Dropdown menus for Plone

Overview

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.

How it works

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.

How to get it

If you are not familiar with managing python packages, please read Packages, products and eggs page of the excellent tutorial by Martin Aspeli.

Tips

What you need is to customize the browser/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.

Installation

Simply activate Dropdown menus profile in Site Setup/Add-ons.

Thanks

Thanks to Wichert Akkerman Simplon for the help with original version of the package.

Contacts

Twitter · Google+