Reviewed & tested by the community
Project:
Layout Builder Modal
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 May 2020 at 07:45 UTC
Updated:
3 Oct 2024 at 11:56 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
unstatu commentedHi,
Thanks for the patch. It worked for me perfectly except for the theme option.
I have modified a little bit the code to work with this option.
Comment #3
johnwebdev commentedThanks for the issue!
I am wondering if we should widen the scope here and ensure any module can be compatible with Layout Builder Modal by allowing modules to alter the contextual links/routes that Layout Builder Modal should target instead.
Comment #4
mark_fullmerAgreed that it would be better to broaden the scope, rather than committing a fix that is specific to Layout Builder ST, but I also think that it would be appropriate for Layout Builder Modal to maintain a list of known link keys & routes that it is compatible with.
It seems like the mechanism for altering the two new arrays should be through alter hooks (as opposed to a site-specific exposed UI for modifying the allowed link keys & form routes.
Comment #5
johnwebdev commentedAgreed!
Comment #6
jerdavisFor what it's worth, this is also incompatible with the core issue for layout translations on which Layout Builder ST is based: https://www.drupal.org/project/drupal/issues/2946333
Comment #7
jerdavisAdding a patch that works with the core patch referenced above.
Comment #8
rigoucrPatch #7 worked for me, thank you all
Comment #9
heddn#7 on 9.1.0-rc1 works for me.
Comment #10
johnwebdev commentedComment #11
kmontyI have been using patch #7 now for about a year on two sites. Working great. Is there anything left needed for this development-wise to get it committed a new release cut?
Comment #12
vlad.dancerRTBC +1.
Works good. Just minor code adjustments.
Odd line.
To be consistent:
true -> TRUE,
false -> FALSE
Comment #13
berdirI think something went wrong with the rerolls at some point. The patches are replacing the separate ajax class condition, but the first patches did not do that. I suspect that was added later and was accidently removed when resolving the conflict. New patch is just replacing the route condition.
Also addressed #12.
Comment #15
kcampero commentedI'm really grateful for Patch #13! It fixed the issue with Layout Builder Modal in version 8.x-1.2 on Drupal v9.5.4 with PHP Version 8.1.2-1ubuntu2.11. Thank you, Drupal community! 🙌🏼
Comment #17
Kevin Jhonatan commented#13
3133695-13.patch
8.x-1.x: PHP 8.1 & MySQL 8.0, D9.5.9
This worked fine for me, thank you!
Comment #18
Vanessa Zeballos commented#13 3133695-13.patch
PHP Version 8.1.2
Drupal Version 9.5.9
Thank you very much for patch #13! Fixed issue with Layout Builder Modal.
Keep contributing, Drupal community!
Comment #19
figover commentedPHP Version 8.1.21
Drupal Version 10.1.6
It is working fine.
Thank you very much for patch #13! Fixed issue with Layout Builder Modal.
Keep contributing, Drupal community!
Comment #21
mortona2k commentedThe work on contextual links in this issue is related: https://www.drupal.org/project/layout_builder_modal/issues/3214458
Comment #22
joe_carvajalI also confirm that #13 works in D10.3 + layout_builder_st alpha3 + layout_builder_modal 1.2