Skip to main content
drupalreleases
Release: Cms 2.2.3 — Update released for Drupal core (2.2.3)! Release: Easy Breadcrumb 2.0.11 — Minor update available for module easy_breadcrumb (2.0.11). Release: Menu Link Attributes 8.x-1.9 — Minor update available for module menu_link_attributes (8.x-1.9). Release: Bootstrap 8.x-3.42 — Minor update available for theme bootstrap (8.x-3.42). Release: PhotoSwipe - Responsive JavaScript Modal Image Gallery 5.0.11 — Minor update available for module photoswipe (5.0.11). Release: Search API attachments 10.0.13 — Minor update available for module search_api_attachments (10.0.13). Release: amazee.ai Private AI Provider 1.4.6 — Minor update available for module ai_provider_amazeeio (1.4.6). Release: amazee.ai Private AI Provider 1.3.10 — Minor update available for module ai_provider_amazeeio (1.3.10). Module Revived: Bootstrap 8.x-3.41 — Theme bootstrap updated after 6 months of inactivity (8.x-3.41). Security Coverage: Component Library — Module component_library now has official Drupal security advisory coverage.

This module allows you to embed self-contained websites or applications directly into Drupal using iframes. It offers features like URL validation, automatic thumbnail generation from screenshots, and integration with Content Security Policy to ensure secure embedding.

The Media Snippet module provides a Drupal Media source for embedding self-contained websites or applications using iframes. It is designed to work with the iframe module and includes features like URL validation, thumbnail generation using a screenshot of the URL, and Content Security Policy (CSP) integration.

Features

  • Media Source Plugin: Adds a "Snippet" media source that uses an iframe field.
  • URL Validation: Validates source URLs against a configurable list of allowed patterns (with wildcard support) and checks for `X-Frame-Options` headers to ensure the content can be actually be embedded.
  • Automated Thumbnails: Can automatically fetch and store screenshots of the target URL using the thum.io service.
  • CSP Integration: Automatically updates Content Security Policy `frame-src` directives when the `csp` module is enabled, based on the allowed URLs configured for the media source.
  • Media Library Support: Includes a custom add form for the Media Library to streamline the creation of snippet media items.
  • Metadata Mapping: Supports mapping metadata like page title and HTML content from the source URL.

This media type can also be used to support any kind of iframe embeds such as the following providers, without needing additional modules:

  • ArcGIS
  • Google Calendar
  • Google Forms
  • Google Maps
  • Microsoft Power BI

Post-Installation

  1. Go to Structure > Media types and add or edit a media type.
  2. Select Snippet as the Media source.
  3. In the source configuration, you can:
    • Define a list of Allowed URLs (one per line, wildcards allowed)
    • Enable Screenshot thumbnails via thum.io and specify the storage directory.
    • Save the media type.

Additional Requirements

Similar projects

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
Apr 2026
Latest release
5 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
1.0.x-dev Dev 11 Apr 10, 2026