Home

Panda

  • Home - Latest posts
  • Portfolio - My Drupal work
  • Gallery - My photos
  • Multimedia - My videos
  • Ponderings - My blog archive
  • Contact - Email me
Home » Ponderings » Improving menu editing in Drupal

Improving menu editing in Drupal

Pondered at 4:21pm on the 25th July, 2009

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.

  • drupal

Post new comment

The content of this field is kept private and will not be shown publicly.

Tags

drupal holiday miscellaneous movie new zealand personal trailer

MicroBlog

3:03pm 29th Jul 2010
Don't be a twit, use Identi.ca!
10:20am 29th Jul 2010
Considering using !Drupal Gardens for a workshop I'm thinking of running in !Coffs... http://www.drupalgardens.com
10:10am 29th Jul 2010
Nice butterfly story about !Drupal 7: http://is.gd/dPDrL
MicroBlog
Copyright © 2010 - Peter Anderson