To create a fully-functional lightbox in Webflow that dynamically pulls images from a CMS Collection, you'll need to configure your Collection List correctly and use the native Lightbox component with a small workaround.
1. Add a CMS Collection to Your Page
- Drag a Collection List element into your Webflow project.
- Connect it to the desired CMS Collection that includes an Image or Multi-Image field.
2. Use the Lightbox Link (Important Workaround)
- Webflow’s Lightbox component can't directly bind to CMS image fields, but a Lightbox Link inside each Collection List Item will work.
- Drag a Lightbox Link into the Collection Item.
- Inside the Lightbox Link, add an Image element.
- Bind the Image to your CMS image field (single or from a multi-image field).
3. Dynamically Create a Lightbox Group
- Set the same Lightbox group name (e.g., "gallery") on every Lightbox Link. This allows images across the same page to open in one grouped lightbox experience.
4. Using a Multi-Image Field (Extra Workaround)
- You can’t repeat Multi-Image field items directly in a Collection List.
- To display multiple images from a single CMS item:
- Create a separate Collection List inside the Collection Item.
- Bind this nested Collection List to the Multi-Image field.
- Repeat Step 2 for each nested image.
5. Preview and Test the Lightbox
- Publish or preview the site in staging mode.
- Click on any image to verify that it opens in a fully-functional lightbox.
- Use left/right arrows within the lightbox to navigate images in the same group.
Summary
To build a CMS-powered Lightbox in Webflow, place a Lightbox Link inside a Collection List, bind the image content, and define a shared lightbox group name. For Multi-Image fields, nest a Collection List inside the item and apply the same method for each image.