Allows site builders to set minimum and maximum number of a paragraph type allowed on a field.
Installation / Configuration
- Install as per any other Drupal Module. https://www.drupal.org/docs/8/extending-drupal-8/installing-drupal-8-mod...
- 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
- Ecosystem: Paragraphs
2,979 sites report using this module
- Created by pavlosdan on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
8.x-1.0
released 9 September 2024
Works with Drupal: >=9.3
Install:
Development version: 8.x-1.x-dev updated 9 Sep 2024 at 23:27 UTC
