Improving menu editing in Drupal
I had an epiphany! (sort of)
I thought of a new way to add items to menus in Drupal, but since it would require AJAX and since I've never coded a module before (let alone coded AJAX), I thought I'd post my thoughts here for someone else to steal.
My idea was to create a Drupal module that enabled a user with the right permissions to be able to click-and-drag any page heading on the site into a menu and have that page automatically be added as a link in that menu...!
For example, you're on a page on your Drupal site and you realise that this page needs to be listed in the main navigation menu. Rather than going into the menu settings and creating a new menu item for the page in question, you simply click on the page heading and drag it over the navigation menu. A marker would be displayed between the existing menu items so you could place the new link in exactly the right place.
Other features of this module would include:
- A setting to allow you to choose what HTML elements were 'drag-able' (h1, h2, etc. elements by default)
- The ability to re-order existing menus by drag-and-drop from anywhere on the site (i.e. just drag the 'contact' link in your sidebar menu to the top and it will be displayed first)
- Permissions so only certain users could add new menu items (anonymous users wouldn't see any of the drag-able icons next to headings)
- Any other features you think would be good to have...
Some quick searching I did didn't reveal any existing, or proposed, modules that would do this, but that doesn't mean there aren't any... If you know of a module that does this already, or one that's planning to do this in the future, put a link in the comments to it's project page, I'd love to check it out!
So feel free to start creating a module that does this, I think it'd be a great improvement for the usability of Drupal.
Post new comment