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.

Comments

wolfhowling created an issue. See original summary.

greg boggs’s picture

Version: 8.x-1.6 » 8.x-1.x-dev
Category: Bug report » Feature request

It would be great to port the capitalizer from the Drupal 7 version. Contributions welcome!

greg boggs’s picture

Title: Uppercased Menu changed to Capitalized » Capitalizer needs to be ported from Drupal 7
greg boggs’s picture

Issue tags: +good-first-issue
baikho’s picture

Status: Active » Needs review
StatusFileSize
new15.92 KB

Hi 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.

greg boggs’s picture

Wow Baik Ho, this is an amazing contribution! Thank you. It will take some careful review to get it included, but I can't wait!

greg boggs’s picture

This 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!

greg boggs’s picture

Status: Needs review » Needs work
tatarbj’s picture

Issue tags: +DrupalCampBelarus2019
deaom’s picture

Status: Needs work » Needs review
StatusFileSize
new15.78 KB

Attached is the re-rolled patch.

kbrodej’s picture

StatusFileSize
new15.76 KB
new1.28 KB

Hi reviewed the patch from #10. Applied cleanly. Found some deprecation issues with Unicode::strtoupper & Unicode::strtolower, replaced them with mb_strtoupper & mb_strtolower.

deaom’s picture

Status: Needs review » Reviewed & tested by the community

The 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.

greg boggs’s picture

I'm working on this patch. I've made a few edits, changing variable names from camelCase t o underscores and the like.

greg boggs’s picture

StatusFileSize
new15.74 KB

I 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.

greg boggs’s picture

Status: Reviewed & tested by the community » Needs work
mrinalini9’s picture

Assigned: Unassigned » mrinalini9
mrinalini9’s picture

Assigned: mrinalini9 » Unassigned
Status: Needs work » Needs review
StatusFileSize
new16.56 KB

Rerolled patch #14, please review.

mrinalini9’s picture

Assigned: Unassigned » mrinalini9
Status: Needs review » Needs work
mrinalini9’s picture

Assigned: mrinalini9 » Unassigned
Status: Needs work » Needs review
StatusFileSize
new17.15 KB
new491 bytes

Please ignore patch #17, fixed #17 issue, and here is the updated patch, please review.

The last submitted patch, 17: easy-breadcrumb-2917195-17.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

greg boggs’s picture

Thanks Mrinalini! That's super helpful!

  • Greg Boggs committed c8b0b93 on 8.x-1.x authored by baikho
    Issue #2917195 by mrinalini9, kbrodej, Greg Boggs, DeaOm, baikho:...
greg boggs’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.