Code Monkey home page Code Monkey logo

webcouturier.dropdownmenu's Introduction

webcouturier.dropdownmenu

Overview

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.

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.

Installation

As any addons, please follow the official install documentation: http://docs.plone.org/manage/installing/installing_addons.html

Tips

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.

Contribute

https://travis-ci.org/collective/webcouturier.dropdownmenu.svg?branch=master https://coveralls.io/repos/github/collective/webcouturier.dropdownmenu/badge.svg?branch=master

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

Credits

Authors:

Contributors:

webcouturier.dropdownmenu's People

Contributors

mishunov avatar jensens avatar wichert avatar toutpt avatar thet avatar lewicki avatar espenmn avatar hvelarde avatar fulv avatar mauritsvanrees avatar rpatterson avatar davilima6 avatar agitator avatar do3cc avatar abosio avatar claytron avatar rodfersou avatar adam139 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.