Reviewed & tested by the community
Project:
Menu Breadcrumb
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Dec 2011 at 19:23 UTC
Updated:
17 Mar 2025 at 19:51 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
xurizaemonIs now a feature of the module
Comment #3
markusbroman commentedIs this really a feature? Cant seem to find it. There are options for Home, Site name and Menu parent.
Is it possible to use custom text or am I missing something? Thanks!
Comment #4
xurizaemonI think you're right, there isn't a UX to enter custom text for this.
#3045132: Use title parent menu instead of home or sitename in breadcrumb is probably the feature I was thinking of. As you say, you may select "Home" or [site name] there, but not custom text. I'll re-open this as a Feature Request accordingly. I'm happy to see someone implement this but don't plan to do so myself.
Until that should happen, sites can use locale_custom_strings_* in your
settings.phpto replace "Home" with the text of your choice.(I have not tested using emoji in custom locale strings! Just an example.)
Comment #5
xurizaemonFeature contribution is welcome :)
Comment #6
manish-31 commentedComment #7
xurizaemon@manish-31, thanks for self-assigning this issue :)
New features will require test coverage to be accepted. Before starting, please take a look at the tests WIP in the following issues:
- #3392139: Wrong breadcrumb due to route alterations
- #3215110: Add automated test coverage (two MRs, one is WIP)
If you have any questions, sing out!
Comment #8
manish-31 commentedThanks @xurizaemon
I will check the tests.
Comment #10
manish-31 commentedHi @xurizaemon
I have raised the MR please review. I have covered tests for custom text for home link feature.
While working on this I found an issue in "Use title menu parent" option for home title. For the case when we don't have home link in menu trail "Use title menu parent" option doesn't work as expected it uses site name from config as home is not available in menu trail. Ideally fallback title should be "Home". Please suggest if I should raise a new issue and assign to myself?
Comment #11
xurizaemonThanks Manish! Yes, please do open a separate issue for the item noted in #10.
Comment #12
xurizaemonComment #13
manish-31 commentedMR has been updated, needs review.
Thanks!
Comment #14
sourabhsisodia_ commentedTested the MR! , MR applied successfully . Custom text option for 'Home' link is there on the config page . The value in the custom text field is visible on the breadcrumb . Attached screenshot for refrence. RTBC++.
Comment #15
sourabhsisodia_ commentedComment #16
xurizaemonRebased against 2.0.x after release of 2.0.0.
Comment #17
baluertlCode changes of the MR !20 at commt
db67d6c7now tested with Simplytest.me on Drupal core 10.4.3 and works as expected. +1 RTBC