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.
Depends on
Dependencies of the latest stable release
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the Paragraphs ecosystem
Most installed first
Activity
Release Timeline
Releases
| Version | Type | Core | Release date | |
|---|---|---|---|---|
| 8.x-1.0 | Stable | 9–11 | Sep 9, 2024 | |
| 8.x-1.0-rc2 | Pre-release | Aug 17, 2024 | ||
| 8.x-1.0-rc1 | Pre-release | Aug 16, 2024 | ||
| 8.x-1.0-alpha6 | Pre-release | Jul 6, 2024 | ||
| 8.x-1.0-alpha5 | Pre-release | Apr 14, 2023 |