Following of #3421458: Merge into Easybreadcrumb?, i create this issue that maintainers has more visibility.
Thanks to @spuky comment https://www.drupal.org/project/dynamic_breadcrumb/issues/3421458#comment...
Here is the MR link https://git.drupalcode.org/project/easy_breadcrumb/-/merge_requests/99
Issue fork easy_breadcrumb-3467372
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 #5
spuky commented@beramu I merged your feature Branch into the issue fork of this issue...
So we have the normal workflow...
Hope getting to to review it closer this week
Setting to needs review for anybody that wants to get involved.
Comment #6
spuky commentedOk gave it a Testdrive in one of my dev sites..
It did not change the output.
but replacement code was executed...
I guess you would have to operate on the $links array before the original
return $breadcrumb->setLinks($links)
since /core/lib/Drupal/Core/Breadcrumb/Breadcrumb.php line 46 has an exception "Once breadcrumb links are set, only additional breadcrumb links can be added."
i guess it is not possible to change the breadcrumb from inside the Builder class... after calling setLinks on it...
also spotted a Typo... $entity_bundle_from_ink should be $entity_bundle_from_link i guess.
Comment #7
spuky commented@bermaru Forget about:
I forgot that we have a preprocess function running on the breadcrumb..
Comment #8
berramou commentedHello @spuky thank you for the tests and review,
It's working in my local env, how did you test, how can i reproduce the warning ?
Comment #9
spuky commentedi used a ddev version of one of my customer sites and added the MR as a patch to composer json...:
(the plain diff link next to the MR)
configured one node type in the dynamic breadcrumbs sektion. And used the site...
For the Taxonomy:
my vocabulary is website_catalog in the config the name gets stored as website-catalog so the case for the warning is Taxonomy Vocs with a space in the name (or a machine name containing an _ underscore...
Comment #10
berramou commentedTo test dynamic breadcrumbs,
you need to create two content of the selected bundle i will give an example with article content
This is what dynamic breadcrumbs does, it changes the generated part of the configured content in breadcrumb.
Comment #11
spuky commentedAdded a suggestion that should fix The warnings on Tayonomy pages mentioned in #9 and https://git.drupalcode.org/project/easy_breadcrumb/-/merge_requests/131#...
and maybe fix the same errors with entity that have an underscore in the machine name... so $bundle_name is only uses for classes but $bundle_key to save the config...
Comment #12
berramou commentedYes you are right we need to check if entity_types not configured no need to apply DB build.
Thank you for the fix i accept you suggested changes.
Comment #13
berramou commentedI just added the check to apply dynamic breadcrumbs only if there is an entity types configured.
TODO:
Comment #14
berramou commentedStill TODO:
Adapt dynamic breadcrumb hook_requirements set the right version instead of 2.0.6Add AJAX to the Entity Types configuration to display the appropriate settings.Comment #15
spuky commentedI gave it another test drive... The Ajax makes config really better...
I have one thing that could make it a little touch better...
will comment on the MR
Comment #16
berramou commentedIt seems good idea @spuky !
Comment #17
berramou commentedHello @spuky any update about this improvement ?
Comment #19
achapJust resolved the merge conflict by merging in the latest stuff from 2.x so I could test it out as the patch wouldn't apply.
Comment #20
berramou commentedany update on this ?
Comment #21
greg boggsIt looks like we need one more rebase to merge.
Comment #23
deaom commentedRebased branch, please re-test and re-check. Setting status to needs review.
Comment #24
deaom commentedChanging back to needs work as tests are failing.
Comment #25
deaom commentedTests are passing, ready for review.
Comment #26
greg boggswoot woot! Thank you! I won't accept any more PRs until this one gets in.
Comment #27
berramou commentedThank you @deaom 🚀
Comment #28
berramou commentedI will update #3421458: Merge into Easybreadcrumb? when it's merged to block installing Dynamic breadcrumb if the easy breadcrumb is installed with the version that contain the merge.
Thank you everyone for your contribution!