Move reset menu items to contrib?
I've dealt with the menu system a bit in the past couple days. I don't think I would ever want to use the reset menu items option on real site; it seems like more of a developer tool. Does anyone have a reasonably common use for this page that I'm not seeing? I can move it over to the devel module if not. -- Neil Drumm http://delocalizedham.com/
Correct me if I'm wrong, but won't resetting menus delete the primary links menu if one has been made? Seems like a dangerous feature, and I wouldn't mind seeing it in devel instead. Neil Drumm wrote:
I've dealt with the menu system a bit in the past couple days. I don't think I would ever want to use the reset menu items option on real site; it seems like more of a developer tool.
Does anyone have a reasonably common use for this page that I'm not seeing? I can move it over to the devel module if not.
Robert Douglass wrote:
Correct me if I'm wrong, but won't resetting menus delete the primary links menu if one has been made? Seems like a dangerous feature, and I wouldn't mind seeing it in devel instead.
It re-adds an empty primary links menu. -- Neil Drumm http://delocalizedham.com/
Op zaterdag 14 januari 2006 10:28, schreef Neil Drumm:
It re-adds an empty primary links menu.
+1 for moving this to devel.module I only use it when a module I devel adds odd or brokensih menus. I cannot recal using this on any live site ever. -- | Bèr Kessels | webschuur.com | website development | | Jabber & Google Talk: ber@jabber.webschuur.com | http://bler.webschuur.com | http://www.webschuur.com |
On 14 Jan 2006, at 04:56, Neil Drumm wrote:
I've dealt with the menu system a bit in the past couple days. I don't think I would ever want to use the reset menu items option on real site; it seems like more of a developer tool.
Does anyone have a reasonably common use for this page that I'm not seeing? I can move it over to the devel module if not.
I'm OK with moving that to devel.module. -- Dries Buytaert :: http://www.buytaert.net/
At 7:56 PM -0800 13/1/06, Neil Drumm wrote:
I've dealt with the menu system a bit in the past couple days.
Yes, thanks Neil. You're doing some great work. I can't wait to see the finished version of that patch you accidentally posted the other day :)
I don't think I would ever want to use the reset menu items option on real site; it seems like more of a developer tool.
Does anyone have a reasonably common use for this page that I'm not seeing? I can move it over to the devel module if not.
There is currently no way to set some flags on menus through the admin interface. MENU_VISIBLE_IF_HAS_CHILDREN is the one that immediately springs to mind, and MENU_VISIBLE_IN_BREADCRUMB. See http://drupal.org/node/29621 for a story about these. If a menu is created with one of these options and subsequently edited, that flag may be cleared and the only way to get it back is to reset the menu item. I plan to write a contrib module that adds a bunch of extra options to the menu system, and a way to explicitly edit these flags will be the first feature. I'm not sure this is a good enough reason to justify the existence of the reset feature. I'm just pointing out that it does have a use. ...Richard.
Richard Archer wrote:
At 7:56 PM -0800 13/1/06, Neil Drumm wrote:
I've dealt with the menu system a bit in the past couple days.
Yes, thanks Neil. You're doing some great work. I can't wait to see the finished version of that patch you accidentally posted the other day :)
I put every patch in the same directory, so if you see a wrong patch I posted it was probably for something in the past. Which one?
If a menu is created with one of these options and subsequently edited, that flag may be cleared and the only way to get it back is to reset the menu item.
I'm not touching individual item reseting, just the whole menu. -- Neil Drumm http://delocalizedham.com/
Neil Drumm wrote:
I've dealt with the menu system a bit in the past couple days. I don't think I would ever want to use the reset menu items option on real site; it seems like more of a developer tool.
Does anyone have a reasonably common use for this page that I'm not seeing? I can move it over to the devel module if not.
Yes, it's a good way to recover from shooting yourself in the foot as a site admin. An admin can use the menu editor to remove the admin options from the menu. Oops. I actually helped a guy out of this situation. I gave him the URL for the editor and told him to use the reset menu option to get everything back to the starting point before he started experimenting. For what it's worth. I don't know if that qualifies as a "reasonably common use." :-) ..chrisxj
participants (6)
-
Bèr Kessels -
Chris Johnson -
Dries Buytaert -
Neil Drumm -
Richard Archer -
Robert Douglass