Closed (duplicate)
Project:
Drupal core
Version:
7.x-dev
Component:
menu system
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Sep 2011 at 14:59 UTC
Updated:
11 Sep 2022 at 19:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
FreddieK commentedHere's a patch that does what's outlined above:
(not working, see next comment)
Comment #2
FreddieK commentedI noticed that the patch has the unlucky result that 'menu-' now gets added twice to the machine name, so no disco. But is the approach a good one or should this be solved in a different way?
Comment #3
FreddieK commentedFixed patch.
Comment #4
joachim commentedThis seems like a good idea, but this new key needs to be added to the documentation for Drupal.behaviors.machineName.
Some other points:
Remember to trim whitespace.
This needs indenting.
Move this comment to the 'prefix' item, as the reason we need a prefix still needs explaining.
4 days to next Drupal core point release.
Comment #5
FreddieK commentedUpdated patch.
Comment #6
Bathie commentedHello, I tested the patch, it is good
Comment #7
mgiffordPushing to needs review. I think that's what's missing here.
Comment #9
Rajender Rajan commentedComment #10
Rajender Rajan commentedComment #12
tinko commentedHello,
In misc/machine-name.js has a short documentation about the properties and there is already field_prefix that will show before menu name if the #field_prefix is added to field "menu_name".
Greetings
Comment #13
ethomas08 commentedIs this issue the same as this one?? https://www.drupal.org/project/drupal/issues/2021571
The patch for the other issue looks good. It adds the menu- to the menu name when adding a new menu.
Comment #14
poker10 commentedThis is indeed a duplicate of #2021571: preview of menu machine name is inaccurate on while adding a menu (does not show it will be saved with menu- prefix) and it should be fixed in 7.92 release. Thanks!