An Omeka S module that provides a responsive iframe page block for embedding external content.
- Responsive aspect ratios: 16:9, 4:3, 1:1, 21:9, 3:2, or auto
- Accessibility: Required title attribute for screen readers
- Performance: Optional lazy loading
- Security: URL sanitization (https/http only)
- Customizable: Max width constraint, optional caption
- Theme-friendly: Uses CSS custom properties for easy theming
- Omeka S 4.0.0 or higher
- Download and unzip in your
modulesdirectory - Rename the folder to
IframeEmbed(if needed) - Enable the module in Admin > Modules
- Edit a site page
- Add a new block and select "Iframe Embed"
- Enter the embed URL and configure options
- Save the page
| Option | Description |
|---|---|
| Embed URL | The URL to embed (required) |
| Iframe Title | Accessibility title for screen readers |
| Aspect Ratio | Container aspect ratio (default: 16:9) |
| Max Width | Optional maximum width (e.g., 800px) |
| Caption | Optional caption below the embed |
| Lazy Load | Load iframe only when visible (default: on) |
The module includes minimal base styles. For custom theming, override these CSS custom properties in your theme:
:root {
--iframe-embed-bg: #f5f5f5;
--iframe-embed-border: #e0e0e0;
--iframe-embed-radius: 8px;
--iframe-embed-caption-color: #666;
}Or override the .iframe-embed classes directly in your theme's stylesheet.
This module is designed to work seamlessly with IWAC-theme, which provides enhanced styling using the theme's design system.
MIT License. See LICENSE for details.
Frédérick Madore