Paragraph Visibility
No security coverage
The Paragraph Visibility module provides per-paragraph visibility controls for Paragraph entities. It allows content editors to enable or disable individual paragraphs directly from the Paragraphs widget action menu without deleting the paragraph.
Hidden paragraphs remain attached to their parent content and can be re-enabled at any time, enabling editors to manage content visibility without template modifications or additional configuration.
Key Features
- Enable / Disable Toggle — Adds an Enable or Disable action to each paragraph's action dropdown menu, allowing editors to toggle paragraph visibility directly while editing content.
- AJAX-powered Updates — Visibility changes are applied using AJAX, updating the paragraph widget immediately without requiring a full page reload.
- Bypass Permission — Provides a dedicated Bypass paragraph visibility permission for trusted roles, allowing them to view all paragraphs regardless of their visibility state.
- Automatic Field Creation — During installation, the module automatically creates a locked boolean field (
field_paragraph_visible) and attaches it to all existing Paragraph bundles with a default value of Visible. - Automatic Support for New Paragraph Types — Any Paragraph bundle created after installation automatically receives the visibility field without requiring additional configuration.
- Protected Internal Field — The visibility field is hidden from form and view displays and is protected from accidental modification or deletion through the Drupal administration interface.
- Clean Uninstall — Removes all field instances from Paragraph bundles and deletes the shared field storage during module uninstallation.
- No Template Changes Required — Works without Twig template overrides or custom theme modifications.
Use Cases
Common use cases include:
- Temporarily hiding promotional banners without deleting them.
- Disabling seasonal content for later reuse.
- Hiding unfinished sections while editors continue working.
- Keeping reusable paragraphs available for future publishing.
- Allowing content editors to control paragraph visibility without developer assistance.
Post-Installation
After installing the module:
Enable the module.
- The module automatically creates the internal visibility field.
- The field is attached to all existing Paragraph bundles.
- Any new Paragraph bundle created in the future automatically receives the visibility field.
- No additional configuration is required.
Editors will see an Enable or Disable option in each paragraph's action dropdown menu while editing content.
Additional Requirements
- Drupal 10 or Drupal 11
- Paragraphs module
No external libraries or third-party APIs are required.