Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Menu Breadcrumb for Drupal 8
Comment | File | Size | Author |
---|---|---|---|
#23 | interdiff.txt | 4.07 KB | berdyshev |
#23 | drupal_8_port_for_menu-2149577-23.patch | 38.66 KB | berdyshev |
#19 | interdiff.txt | 13.86 KB | berdyshev |
#19 | drupal_8_port_for_menu-2149577-19.patch | 38.49 KB | berdyshev |
#15 | drupal_8_port_for_menu-2149577-15.patch | 38.53 KB | berdyshev |
Comments
Comment #1
xurizaemonThanks for stepping up! I've created an 8.x-1.x branch in git and a release (which we won't show until there's something committed).
Version hasn't shown up in the issue queue yet - not sure if I'm forgetting a step or it's just going to take time.
Comment #2
xurizaemonComment #3
xurizaemonComment #4
ipo4ka704 CreditAttribution: ipo4ka704 commentedOk we will start. Later we will give a patch.
Comment #5
xurizaemonipo4ka704 if you want to get your work in progress somewhere visible that'd be cool - maybe a drupal.org sandbox or on a platform like github?
that way you might benefit from others who are keen to engage but don't know where they might start if they can't see your work
Comment #6
dayliotiWe (@InternetDevels team) have ported the first stage and made a patch.
But there are some defects that are associated with the fact that the kernel is not fully functional works adequately.
We plan to maintain this module in the future and want to get the maintainers.
Comment #8
xurizaemonThat's great - I'm totally open to additional maintainers and your enthusiasm is very welcome. Let's see how this contribution goes first?
Committed patch above to 8.x-1.x - it looks good at a quick scan & anything is better than nothing :)
Will leave at "Needs Review" for now.
Comment #9
Codenator CreditAttribution: Codenator commentedCreated fully working sandbox module. If it the same functionally can add path there.
https://www.drupal.org/sandbox/oles89/2367919
Test your path igeat work but outdated.
Comment #10
Codenator CreditAttribution: Codenator commentedComment #11
choster CreditAttribution: choster commentedThanks for the initial work. Changes in core since the post seem to have rendered it non-functional unfortunately. On a clean D8b9 install, enabling 8.x-1.x-dev kills the site with the message (paths redacted)
The same error also prevents a clean pm-uninstall via drush; here is the trace (paths redacted):
Comment #12
Codenator CreditAttribution: Codenator as a volunteer commentedThanks for test module! Fixed for Drupal beta10!
Will be happy for any ideas how improve it! For now it is fully functional module.
Link to module https://www.drupal.org/sandbox/oles89/2367919
p.s. comment #11 you test very out dated module
Comment #13
Codenator CreditAttribution: Codenator as a volunteer commentedComment #14
rooby CreditAttribution: rooby commentedI also have a sandbox module for something similar at https://www.drupal.org/sandbox/rooby/2709721
My module works more like Breadcrumbs by path in that it doesn't care about active trail/menu, it just looks at the path and tries to create a link for each path section if it finds one in the menu.
While it doesn't work the same as this module and it still has a little work to go it may have some code that is useful here so feel free to use any parts of it that may be useful.
Comment #15
berdyshev CreditAttribution: berdyshev at AMgrade commentedHi,
I have updated code of 8.x-1.x branch to work with latest Drupal 8 stable version.
I have also pushed changes to sandbox https://www.drupal.org/sandbox/berdart/menu_breadcrumb_
Feedbacks and suggestions are welcome!
Comment #16
RyanPrice CreditAttribution: RyanPrice commentedThank you @berdyshev for your efforts here. Hoping someone has time to test this in D8 in the near future. I won't be able to until next week sometime.
Appreciate the work.
Comment #17
temkin CreditAttribution: temkin as a volunteer commentedI had a chance to test #15 on a Drupal 8 site and it worked fine. Thanks @berdyshev!
Marking as RTBC so that it can be merged into 8.x-dev branch.
Comment #18
Leksat CreditAttribution: Leksat at Amazee Labs commentedTested #15, looks good!
+1 to commit this, so that we can file new bug-fixes :D
For example, when menu structure is changed, caches are not cleared.
But in general, #15 is good to go!
@berdyshev, thanks a lot!
Comment #19
berdyshev CreditAttribution: berdyshev at AMgrade commentedThanks a lot guys for your review.
I have re-rolled patch with some changes:
Comment #20
RyanPrice CreditAttribution: RyanPrice commentedJust updating the status - if someone has time to test this new patch it would be appreciated.
Comment #21
acbramley CreditAttribution: acbramley at Department of Justice & Community Safety, Victoria commentedTaking a look at this now.
Comment #22
acbramley CreditAttribution: acbramley at Department of Justice & Community Safety, Victoria commentedShouldn't be using getEditable in a read context.
Checking if the path starts with "/admin" isn't a valid way of checking for an admin path.
See https://www.drupal.org/node/2224207
Personal opinion: 2 anonymous functions in a row make this function highly unreadable.
I'm not sure why but there seems to be a shift towards anon functions in the Drupal community but I think it's better to go for readability/maintainability.
Other than that there's some coding standards violations, and a lack of tests but overall this is a solid effort. We'll probably be using this soon so I think this is a really good start and should be committed asap once the things above are fixed
Comment #23
berdyshev CreditAttribution: berdyshev at AMgrade commentedThanks for your review, @acbramley.
Yes there are a lot of things which could be improved and implemented, but I think this could be a minimal version we could proceed with.
I have fixed your suggestions, patch attached
Comment #24
acbramley CreditAttribution: acbramley at Department of Justice & Community Safety, Victoria commented@berdyshev agreed, RTBC'd nice work!
Comment #26
RyanPrice CreditAttribution: RyanPrice as a volunteer commentedMerged into 8.x-1.x
Comment #27
rphair CreditAttribution: rphair as a volunteer commentedI understand this issue is closed and thank everyone for finally bringing this module to D8. While waiting I wrote my own implementation, working the same way in a basic sense (following the menu active trail) though it will also look for taxonomy memberships and extend the breadcrumb trail according to those (e.g., for Articles that aren't explicitly on a menu).
This is my first module and I would appreciate if anyone interested in better breadcrumbs for D8 would take a look at sandbox module Menu Breadcrumb with Attachment by Taxonomy. I would be thankful for any suggestions to make this module robust enough for general use.
Comment #28
acbramley CreditAttribution: acbramley at Department of Justice & Community Safety, Victoria commented@rphair, I suggest instead of yet-another-breadcrumb-module you add a feature request to this module and patch it with the changes and configuration required to get your taxonomy attachment working.
Comment #29
rphair CreditAttribution: rphair as a volunteer commentedthanks @acbramley - issue posted here: https://www.drupal.org/node/2754437
Comment #30
rphair CreditAttribution: rphair as a volunteer commentedHoping at least one of the maintainers will see this: since no movement on patches to bug reports submitted in last 3 months, have offered to take over maintenance of D8 branch (https://www.drupal.org/node/2810611): guidelines suggest responding to this request within 2 weeks. All these bug fixes have been ported into sandbox referred to in #27.
Comment #31
xurizaemon@rphair - I see you're already added as maintainer, so please accept my blessing to engage the D8 branch :)
Comment #32
rphair CreditAttribution: rphair as a volunteer commentedThanks to both @xurizaemon and @RyanPrice for the positive response; I plan to clean up any loose ends resulting from the separate threads & upload the patched branch today...