Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Entity API 8.x-1.8 Minor update available for module entity (8.x-1.8). Release: Blazy 3.0.19 Minor update available for module blazy (3.0.19). Release: Leaflet 10.4.12 Minor update available for module leaflet (10.4.12). Release: Extra Paragraph Types (EPT): Core 2.0.1 Minor update available for module ept_core (2.0.1). Release: Govuk Theme 3.1.13 Minor update available for theme govuk_theme (3.1.13). Release: Acquia Analytics Redirects 2.0.2 Minor update available for module acquia_analytics_redirects (2.0.2). Release: AI translate 1.4.0 Minor update available for module ai_translate (1.4.0). Release: Mapy.com 1.1.2 Minor update available for module mapycom (1.1.2). Module Revived: Translation Management Tool 8.x-1.19 Module tmgmt updated after 7 months of inactivity (8.x-1.19). Usage Milestone: Account field split Module account_field_split crossed 10,000 active installs.

Modal Popup

No security coverage Drupal 10–11
View on drupal.org

Modal Popup opens any content entity in a modal dialog, without leaving the page. What appears inside is an ordinary entity view mode, so you build and style it with the tools you already use Manage display.

It works as a field. You add Popup link to a bundle, then from Manage display you pick the view mode the dialog should render. That's the whole idea.

Works with

  • Content (node)
  • Media
  • Taxonomy term
  • Custom block (block content)
  • Paragraph

Nothing is enabled out of the box. After install the module touches nothing until you tell it to.

How to use it

  1. Enable the entity types you want. Go to /admin/config/content/modal-popup and tick the entity types Modal Popup should work on. This is always the first step.
  2. Add the field. On the bundle you're working on, go to Manage fields → Add field and choose Popup link. It's display-only: it holds no values and never appears on the edit form. Repeat on each bundle that needs a popup.
  3. Configure it in Manage display. Open the view mode where the trigger should appear, drag Popup link into a region, and open its settings:
    • View mode: which view mode the dialog pulls and renders. Only view modes that exist for this bundle are offered.
    • Label: the text on the link or button.
    • CSS classes: added to the trigger, so you can use your theme's own classes,

Every view mode keeps its own settings, so a teaser can open the full view while a card opens something narrower. The route, the dialog and the library loading are handled for you.

In Views

The same field is available in Views. Click Add next to Fields, search for Popup link, and drag it into place. The settings are identical, so every row in a listing, grid or slider can open its own content in the dialog. Combine it with an image field and you have a gallery; combine it with a title and you have a quick-view listing.

Views fields are only available when the row style is set to Fields. If a view renders whole entities instead, configure the popup link in Manage display for that view mode.

For full control, call modal_popup_link(entity, view_mode, label) from a Twig template.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Aug 2026
Latest release
3 hours ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
1.0.0 Stable 10–11 Aug 27, 2026