Control which links are modal?

Created on 27 March 2019, over 5 years ago
Updated 5 August 2024, 5 months ago

Another feature request. Would there be any way to limit this behavior to custom inline blocks? We already have code in place to handle other kinds of blocks (in our case using Entity Browser Block to open entity browsers), and don't want that workflow hijacked. I guess ideally a configuration option to apply to all links (the default), or only specific kinds of blocks.

✨ Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States KarenS

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡³πŸ‡ΏNew Zealand john pitcairn

    I 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:

    • Everything opens in the off-canvas sidebar dialog by default.
    • A "pop-out" icon is added to the sidebar dialog title bar next to the close icon.
    • Clicking that closes the dialog and reopened it as a modal.
    • A "pop-in" icon is added to the modal dialog title bar next to the close icon.
    • Clicking that closes the modal dialog and reopens it as a sidebar.
    • A dialog type identifier class is added to the dialog.
    • The user's choice is remembered in browser localstorage, per dialog type.

    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.

  • Patch does not apply to latest version of the module

Production build 0.71.5 2024