Making it so code-provided menu links can have their titles edited
This link is provided by the module. "The title and path cannot be edited." Drupal 8
https://www.drupal.org/node/2838106#comment-12269503
This issue is about fixing the home link in the standard profile. We should let that fix go in. That said, i'm with those saying we (also) need a general solution for this.
The problem is that module-provided (or install profile provided) menu links cannot have their titles edited, and this is unconscionably annoying. Yet the solution here is to make one link not be directly code-defined.
I got here looking for a way to let site administrators edit the name of the menu link that Give module provides. As a maintainer of the module I could simply give people another field in the configuration of the module, but making module-provided menu items have easily overridable, translatable titles is a common need that should have a fix in Drupal core.
Ancient workaround: Override the title of a Menu Item (Local task)
https://www.drupal.org/node/215712
A modern workaround:
https://drupal.stackexchange.com/questions/217252/how-do-i-alter-the-title-of-a-menu-link
A request just to improve the error message:
https://www.drupal.org/node/2859921
The simple disable and add a new custom menu item approach:
https://drupal.stackexchange.com/questions/227491/bartik-home-link-to-be-uppercase
core.menu.static_menu_link_overrides.yml
definitions:
contact__site_page:
enabled: true
menu_name: footer
parent: ''
weight: 0
expanded: false
_core:
default_config_hash: jdY7AU0tU-QsjmiOw3W8vwpYMb-By--_MSFgbqKUTY
A site administrator can change the name of the menu link
https://www.drupal.org/node/2911170
Comments
Post new comment