I have some submenus that are abbreviation and are all uppercase in the menu link but they appear as as capitalized on the breadcrumbs.
Example:
'PC' would appear as 'Pc' in the breadcrumbs.
Can this be changed to use the same scenario as in the menu if they are all capitalized to appeared capitalized and if they are all uppercase to appear uppercase.
Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| #19 | interdiff-2917195-17-19.txt | 491 bytes | mrinalini9 |
| #19 | easy-breadcrumb-2917195-19.patch | 17.15 KB | mrinalini9 |
| #17 | easy-breadcrumb-2917195-17.patch | 16.56 KB | mrinalini9 |
| #14 | wip.patch | 15.74 KB | greg boggs |
| #11 | interdiff_10-11.txt | 1.28 KB | kbrodej |
Comments
Comment #2
greg boggsIt would be great to port the capitalizer from the Drupal 7 version. Contributions welcome!
Comment #3
greg boggsComment #4
greg boggsComment #5
baikho commentedHi there,
Here is a port for the Capitalizer options.
Just letting you know that I've put the default options from
EasyBreadcrumbConstants::defaultIgnoredWords()into config & discarded the method as I thought that was sensible to do.See attached patch.
Comment #6
greg boggsWow Baik Ho, this is an amazing contribution! Thank you. It will take some careful review to get it included, but I can't wait!
Comment #7
greg boggsThis patch needs a reroll and it's a pretty big one, so I can't get to it today. If anyone is up for it, please do!
Comment #8
greg boggsComment #9
tatarbjComment #10
deaom commentedAttached is the re-rolled patch.
Comment #11
kbrodej commentedHi reviewed the patch from #10. Applied cleanly. Found some deprecation issues with Unicode::strtoupper & Unicode::strtolower, replaced them with mb_strtoupper & mb_strtolower.
Comment #12
deaom commentedThe corrected patch also applied cleanly, so marking it as RTBC if there is still a need for this patch as it's an old issue.
Comment #13
greg boggsI'm working on this patch. I've made a few edits, changing variable names from camelCase t o underscores and the like.
Comment #14
greg boggsI got a bit side tracked with life. But, here's the WIP on this patch. It needs a bit more work and a reroll still.
Comment #15
greg boggsComment #16
mrinalini9 commentedComment #17
mrinalini9 commentedRerolled patch #14, please review.
Comment #18
mrinalini9 commentedComment #19
mrinalini9 commentedPlease ignore patch #17, fixed #17 issue, and here is the updated patch, please review.
Comment #21
greg boggsThanks Mrinalini! That's super helpful!
Comment #23
greg boggs