Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Paragraphs wrap by field values

No security coverage Under active development 60 sites

Part of the Paragraphs ecosystem · 86 projects

This module provides a Paragraphs field formatter that wraps multiple paragraphs in a `div` based on the value of a chosen field. This allows for grouping and styling of related paragraphs.

This module adds a new Paragraphs Field Formatter that wraps multiple paragraphs in a div, based on a specific field value.

HOW TO USE

Create a "list_field" type field and add options
field_bg_color
Options:
bg_black|bg-black
bg_red|bg-red

Add the Formatter to your paragraphs field and select field_bg_color for the wrapping field.

Add the created field to paragraphs.

Go to your paragraphs and select the same value (ie bg-black) on the paragraphs you wish to wrap. (obviously paragraphs should be in a row)

Check the frontend :) Paragraphs are wrapped in a div named
"pw-group pw-group--bg-black"

This module is based and inspired by Paragraphs theme wrapper

Ask your assistant about Paragraphs wrap by field values

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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
2
Tracked since
Apr 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Slowing

Releases

Version Type Core PHP Release date
1.0.0-beta1 Pre-release 9–10 Oct 14, 2024
1.0.x-dev Dev 9–11 Apr 5, 2024