Style Options - Media Reference
This project adds a way for editors to select media directly within layout or paragraph style forms. The selected media will be automatically rendered and made available for use in your templates. It works with the core Media Library and can use an enhanced picker if available.
Adds a media_reference plugin to Style Options that lets editors pick a media entity from within a layout or paragraph style form. The selected media is rendered and injected into the build array as a Twig variable ({{ style_options_media_[option_id] }}).
Uses the Media Library Form Element picker when available, falling back to autocomplete without any configuration change.
Requirements
- Style Options
- Drupal core
mediamodule - Media Library Form Element (optional)
Depends on
Dependencies of the latest stable release
- Style Options
- media Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.