Extra Block Types (EBT) - New Layout Builder experience❗
Extra Block Types (EBT) - styled, customizable block types: Slideshows, Tabs, Cards, Accordions and many others. Built-in settings for background, DOM Box, javascript plugins. Experience the future of layout building today.
❗Extra Paragraph Types (EPT) - New Paragraphs experience
Extra Paragraph Types (EPT) - analogical paragraph based set of modules.
Scroll
Drupal 8 Modal form
22/02/2025, by Anonymous (not verified)
Forums
In the body of the block, add the following snippet:
Adjusting the width
You can adjust the width by adding the data-dialog-options attribute:
I’m including the HTML entity
"
because that will end up being a quote mark in the rendered HTML.The full snippet with a width of 600 pixels is:
Wrapping up
You can use this method to display any valid Drupal path in a modal. For example, if you want to show a node in a modal, change the href to the path for the node.
Example:
https://gist.github.com/edwardchan/2c2d4f8b340f1425a4902c05afa7ecc6