cms-alchemy/mild-media-manipulation

Token-based media layout wrappers for Drupal using controlled CSS variants.

Maintainers

Package info

github.com/DanielMoody/mild_media_manipulation

Type:drupal-module

pkg:composer/cms-alchemy/mild-media-manipulation

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main 2026-03-31 00:15 UTC

This package is auto-updated.

Last update: 2026-05-01 00:08:46 UTC


README

Mild Media Manipulation is a lightweight Drupal text filter that allows editors to apply simple layout styles to embedded media using inline tokens.

It wraps content in semantic containers (<div> or <figure>) and applies predefined CSS classes, optionally including captions.

Installation

composer require cms-alchemy/mild-media-manipulation
drush en mild_media_manipulation

Features

  • Token-based syntax for inline layout control
  • Controlled vocabulary (no arbitrary class injection)
  • Optional captions using semantic <figure> / <figcaption>
  • Automatically attaches required CSS
  • Works inside standard text formats (e.g., Basic HTML, Full HTML)

Concept

Instead of forcing editors to manually write HTML or rely on complex media configuration, this module provides a simple wrapper syntax:

[mmm:variant] ... [/mmm]

This allows layout decisions to remain editor-controlled but constrained, avoiding layout chaos.

๐Ÿงพ Usage

Basic syntax

[mmm:left-side] [/mmm]

With caption

[mmm:right-side] | This is a caption [/mmm]

Available Variants

  • left-side โ†’ floats content left
  • right-side โ†’ floats content right
  • two-column โ†’ grid layout (2 columns)
  • centered โ†’ centered content

Invalid variants are ignored (content passes through unchanged).

Output Behavior

Without caption

... ``` With caption ... ...