What to prepare
You need editing permission and a test page. Prepare images and text that make each card recognisable.
The Modal container has two independent slots that accept blocks and other containers: Contenido visible (Visible content), which remains on the page, and Contenido del modal (Modal content), which appears when the card is activated. Internal links and buttons keep their own actions. Closed content reserves no space. You can nest this container inside columns, a stack, a gallery or a simple container. Its specific controls currently use Spanish labels.
Prepare three manual items
- On a page you can edit, add a Stack with three manual items. Inside each item, insert a Modal container from the container library.
- In Contenido visible, add an image. Choose a different image for each item so you can recognise which card you open.
- Choose the small Editar modal (Edit modal) button above the visible content. You can open it even when that slot is empty. An editing window opens at the configured modal size, with the usual slot for adding blocks and containers. The admin and Builder bars remain visible so you can configure elements, use Preview or save the draft through their controls.
- Inside Contenido del modal, add another image, a heading and text. Configure each block as you would in a simple container.
- Choose Cerrar edición del modal (Close modal editing) to return to the page and repeat for the other two items. Choose Save draft and review it under Draft and history to check that both slots retain their content.
Drag existing elements between editable containers and iterations inside the window. Dropping them outside that editing window is rejected and keeps the element in place. You can add new blocks and containers from the palette. Each completed drag is one Undo change; Redo applies that movement again.
Design the card and dialog separately
In the container settings, Content lets you enable or disable Mostrar título (Show title) and set Título del modal (Modal title) per language or through binding. In a repeated container, connect the title to Current iteration to use each item’s data. You can also enable or disable Cerrar al pulsar fuera del contenido (Close when clicking outside the content). Design contains two groups:
- Contenido visible: set width and the usual background, border, text, spacing, layout and sizing controls for the container that remains on the page.
- Contenido modal: set its own background, borders and corners, text, spacing and layout. Under Sizing, the width and height rows provide base, minimum and maximum values, with desktop, tablet and mobile variants. The initial width is
80vw, with natural height and an initial maximum height of80dvh; you can change both through these controls.
The dialog design is saved separately from the card design. For example, you can give the visible image a thin border and the modal a maximum width, padding and rounded corners. Check long content and mobile width after changing these limits.
Inside Contenido del modal, you can also add a stack, columns or a gallery and configure its data as you would on the page. For example, prepare a bound gallery and use three desktop columns, two tablet columns and one mobile column in its grid view. Check each enabled view inside the open modal.
Header and opening effects
The header stays visible while the modal content scrolls. Disabling Mostrar título (Show title) removes the header strip and leaves only the floating close button.
Under Content, configure the opening effect: none, fade, zoom or entry from the top, bottom, left or right. Set duration and delay in milliseconds and choose an easing curve. The reduced-motion preference disables these effects. The delay controls the animation; it does not guarantee that images or gallery data have finished loading.
Reuse one template with binding
Configure the source and iteration field on the parent container, such as a gallery or stack. Insert the Modal container in its template and connect the image, heading and text properties in both slots to Current iteration. Choose fields from the model represented by that iteration; a collection or media relation can expose different fields from the source record. See how to connect data.
Only the first editable item offers the Editar modal button and lets you configure blocks. Other cards represent the same template with their own data. Publicly, each card opens its own item’s content; choosing a fixed connection on a block can make it always show the same resource.
Check opening and closing
In preview or publicly, click the card, or focus it with the keyboard and press Enter or Space. The modal overlays the page. Close it with its close button or Escape; you can also click outside when that option is enabled. Also check Tab navigation and that focus returns to the opening element.
If you enable enlargement on an Image block inside the modal, clicking it opens the viewer above the modal while preserving the image’s proportions. Close the viewer and check that you return to the modal.
Test all three cards with manual content and with at least three different resources. Check that each image and text belongs to the activated item. Repeat after sorting or paginating the gallery. Save the draft, review it under Draft and history and confirm Accept and apply. Reload and repeat without signing in, on desktop and mobile. During editing, use Editar modal to work in the hidden slot; clicking its blocks keeps builder selection active.
Hidden content does not replace resource permissions. If every card shows the same data, check its binding before changing the design.