Needs review
Project:
Layout Builder Modal
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Mar 2019 at 12:53 UTC
Updated:
5 Aug 2024 at 10:58 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
johnwebdev commentedSounds like a good idea.
This patch does the job; but the user interface is not very user-friendly and you're expected to enter the plugin ids you want to be opened in a modal and if you leave it empty it's applied to all links. This user interface could be extended to support things like regexes so you don't have to enter ALL blocks of the same type (i.e. inline blocks), if we think the general approach is good enough.
Otherwise I'm open for ideas how the UI should function.
Setting to NR to see if it broke any tests.
Comment #3
johnwebdev commentedThere has been new permissions added to Layout Builder, let's run the tests again with that permission added to the test user.
Comment #4
johnwebdev commentedComment #5
johnpitcairn commentedI built a fairly hacky system on top of Layout Paragraphs module that gave users the ability to decide how the dialog should open. That proved very useful and worked something like this:
Maybe that's not appropriate as a solution here, but I'll probably need to replicate it for Layout Builder as we move away from Layout Paragraphs, so thought I'd mention it as a possible direction. The nice thing about is you could set some broad defaults then leave it up to the user.
Comment #6
hoporr commentedPatch does not apply to latest version of the module