Same as this D7 request here, it would be great to have the option of a maxlength with ellipsis for the title (and other?) segments of the breadcrumb.
Issue fork easy_breadcrumb-3189576
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
greg boggsGreat idea!
Comment #3
w01f commentedThis is how I solved it via a custom twig template - breadcrumb.html.twig
Comment #4
w01f commentedUpdated the code - had too many |striptags in there that was causing special characters to output incorrectly as per https://www.drupal.org/project/easy_breadcrumb/issues/3190151
Comment #7
deaom commentedThe truncate title functionality was added based on the mentioned/linked D7 one. Tested it locally and for me it seems to be working, but there might be things I have missed, so a review/test is very welcomed.
Comment #8
extect commentedWould love to see this feature.
I updated an existing test site with this. It throws the following errors on saving the easy_breadcrumb admin page:
InvalidArgumentException: $string ("100") must be a string. in Drupal\Core\StringTranslation\TranslatableMarkup->__construct() (line 132 of core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php).Guess we need a hook_update to ensure existing sites get a db update.
Comment #9
greg boggsHrm, not seeing the bug in the merge request right now, but it's been a long day. fixes from others welcome!
Comment #10
i-trokhanenkoComment #11
i-trokhanenkoWorks well for me, thanks!
+1 RTBC
Comment #12
renatog commentedit really makes sense. +1 to it
Comment #15
neslee canil pinto