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.

Did you ever run into an issue of creating new paragraph type with the same fields only because it looks a bit different?
This tiny module is meant to easily reuse the same paragraph types with different view mode (display mode).
With this module, you can choose which view modes should be available during editing of the content by using the widget settings for a particular type of paragraph.
You can also dynamically choose in which display mode you want to render this specific paragraph when adding the content.

Simillar modules

IMPORTANT: This module may be incompatible with any similar modules because of using one and the same hook for altering the paragraph view mode.

How it is different comparing other modules?

  • This module is based on the Field API - provides new field type, field widget, whereas the other is based on the experimental Behaviour plugin provided by the Paragraphs module
  • This module does not depend on any Paragraphs widget
  • As the main functionality is provided by the field, then it allows to place the view mode selector anywhere on the paragraphs form (can be managed via UI), it is not forced by any other module or plugin.
  • Field-based approach allows to easy select paragraphs by the field value in views module or any database query operations
  • This module allows selecting only view modes enabled for the current paragraph bundle
  • The field is fully configurable as any other fields (label, required, translatable etc.) starting from version 3.0
  • The child paragraphs may also have their own view mode selector
  • The paragraph form is reloaded dynamically via AJAX if the form mode has the same ID as the selected view mode starting from version 3.1



Upgrade path from 8.x or 2.x versions to 3.x

No specific action is needed, just a regular Drupal modules update flow:

  • update the package (composer/zip whatever you are using) to ^3.0 version,
  • run drush updb command or go to /update.php in order to run the DB updates
  • run drush cr command or flush the cache from the admin panel

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

Releases

Version Type Core Release date
3.2.0 Stable Jan 7, 2025