Drupal is a registered trademark of Dries Buytaert
Release: Drupal 10.3.6 Update released for Drupal core (10.3.6)! Release: Drupal 11.0.5 Update released for Drupal core (11.0.5)! Release: Drupal 10.2.9 Update released for Drupal core (10.2.9)! Release: Drupal 10.2.10 Update released for Drupal core (10.2.10)! Release: Drupal 10.3.7 Update released for Drupal core (10.3.7)! Release: Drupal 11.0.6 Update released for Drupal core (11.0.6)! Release: Drupal 10.3.8 Update released for Drupal core (10.3.8)! Release: Drupal 11.0.7 Update released for Drupal core (11.0.7)! Module Revived: Translation Management Tool 8.x-1.19 Module tmgmt updated after 7 months of inactivity (8.x-1.19). Usage Milestone: Account field split Module account_field_split crossed 10,000 active installs.

Default Paragraphs module provides a widget for entity_reference_revisions field types, that allows us to select multiple paragraph types as defaults, so they will be added on the entity add page. it is based on Paragraphs EXPERIMENTAL widget.

The main use case is where we need to have a default content structure for a given entity type.

The paragraph types set as default would be shown as "closed" on entity add page by default, but for the case where given paragraph type has required fields it will be opened.

Default Paragraphs allows other modules to modify the paragraph entities by subscribing for an event called DefaultParagraphsEvents::ADDED. It is triggered right before they are set as default values of the widget. It provides the possibility to set default values to the paragraph entity's fields if needed.

It is useful when we have multiple paragraph reference field.

Usage:

  1. Install the module: composer require drupal/default_paragraphs
  2. Create multiple paragraph reference field for a given content type
  3. Make sure you have more than one allowed paragraph type for this field
  4. Go to Manage form display page
  5. Select "Default paragraphs widget"
  6. You can select now the default paragraphs type from the settings form
  7. When you go to add content page, the paragraph reference field will have the default paragraph entities pre-populated.

Releases

The 2.0.1 release is compatible with the 1.18 version of the Paragraphs module. For older versions of the paragraphs module, stick to 2.0.0

Dependencies:

  • Paragraphs

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
Oct 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
2.0.1 Stable Oct 7, 2024