Allows site builders to set minimum and maximum number of a paragraph type allowed on a field.

Installation / Configuration

  1. Install as per any other Drupal Module. https://www.drupal.org/docs/8/extending-drupal-8/installing-drupal-8-mod...
  2. Once installed go to a paragraphs field and switch its handler for selecting paragraphs to the new paragraphs_limits handler and define the limits you want.

Uninstalling

  • Uninstall as usual. During uninstalling the module will replace the paragraphs_limits handler with the default paragraphs handler.

Functionality

- Adds a new 'Paragraphs with limits' entity selection plugin for paragraph
fields that allows users to set lower and upper limits for paragraphs.
- Defines a new constraint that validates these limits when a user submits a paragraphs field.
- Setting a limit to '0' disables that limit.
- Reaching the upper limit of a paragraph will hide that paragraph from the available paragraphs to add in the widget.

Supporting organizations: 
Sponsored development time.

Project information

Releases