Giter VIP home page Giter VIP logo

menu_parent_form_ui's Introduction

Menu Parent Form UI

A module for Drupal 8

Drupal better menu selector for big menus screenshot

A better user interface for choosing parent menu items in Drupal. This is a client-side solution that applies a hierarchical select feature to the choosing of parent menu items in Drupal 8.

When a menu in Drupal gets too big, the select dropdown for choosing a parent menu item becomes unusable. This module changes the single dropdown into multiple cascading dropdowns on both the node edit form and the menu add link form.

Instructions

Just enable the module, and you should see cascading/hierarchical menus for choosing parent menu items on the node edit form and when adding menus from structure > menus

Notes/Future Support

This is a client-side module that uses javascript to extract the menu levels by looking at the number of dashes at the beginning of the option text (e.g. "--About" vs "----Our History"). Drupal includes the dashes by default when printing this option list, but this approach relies on that always being the case. It will break if Drupal changes the structure of that options list in the future and removes the dashes. (I'm not sure why this would happen, but just noting it here).

This module should be a temporary solution for the problem; something better is needed. Probably this should be merged with Client Side Hierarchical Select. They accomplish nearly the same thing, though cshs is only for taxonomy terms as of this writing.

menu_parent_form_ui's People

Contributors

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