I'm not sure if this belongs under 'feature request' or 'bug report', but the dependencies between menus and content are causing me a lot of grief.

Specifically, the fact that a menu item must be linked to a corresponding functioning path seems unnecessary and unwise. For example, I've been working with the panels 3 alpha, and as the result of some alpha kinds of problems I had to delete a panels page that was linked from the top level of the primary menu. When I did so, the corresponding branch of the menu disappeared completely from the admin interface, and at that point you're flying blind. I attempted to resuscitate the menu by creating another page with the path in question, but for some reason it didn't work, so I've had to resort to hacking at the menu tables directly. In the process I also discovered some disconnected menu items in the tables that are inaccessible to the admin interface.

I'm sure there's some reason this dependency exists, but frankly, it simply shouldn't. Menus should exist as they've been defined regardless of whatever might happen to site content. If there's no path defined, there could just be a status flag in the admin interface.

Comments

pauln600’s picture

No comment? So it's considered to be ok in Drupal if the primary menu blows up when a linked path disappears?

Hmm...

jstoller’s picture

You definitely have a point. One gotcha that comes to mind is how to deal with deleted nodes. When I delete a node I would need to be given the option of removing it from the menu structure, or leaving it there as a broken link. Or perhaps I could even be allowed to set a new path for that menu item. I wouldn't want menus and content to be so disconnected that I end up with a menu full of links to long deleted nodes. And I'm a firm believer that all menu settings for a node should be accessible from that node's configuration page, without having to go into the menu admin pages.

pauln600’s picture

Yes, a link going nowhere is certainly something to avoid - some kind of flag in the menu to show this condition would be great, and setting the menu via the content item seems like a good idea.

Certainly the current situation is really awful and needs to be fixed...

pauln600’s picture

Category: feature » bug

I'd like to bump this issue again and reiterate what an incredible pain in the neck this can be, particularly when you're moving content around, and can't make a new page at a particular url without deleting the old one (and trashing the menu in the process).

Paul N.

stephencamilo’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)
hestenet’s picture

Status: Closed (won't fix) » Active

Reset issue status.