This project is not covered by Drupal’s security advisory policy.

The Paragraph Control module adds a customizable boolean "Disable Display" field to all paragraph types in Drupal. This field provides an easy way for content editors to toggle the visibility of individual paragraphs without removing them from the content structure. When the field is unchecked, the paragraph will not be rendered on the frontend, allowing for flexible content management.

Features

  • Automatically adds a Disable Display field to all existing paragraph types upon installation.
  • Editors can enable or disable specific paragraphs by simply checking or unchecking the field.
  • The field is integrated seamlessly into the paragraph editing form, with clear "Enabled" and "Disabled" options.
  • The module ensures that disabled paragraphs are not rendered on the page, preserving clean and controlled content output.
  • The field is removed upon uninstallation, ensuring a clean configuration and database state.

Post-Installation

1. Verify the "Disable Display" Field

  • Go to Structure > Paragraph types.
  • Edit any of the paragraph types (e.g., Text, Image, etc.).
  • Under Manage fields, you should see a new field called "Disable Display"
  • This field will be available on all paragraph types, allowing you to toggle visibility.

2. Edit Content to Use the "Disable Display" Field

  • When editing or creating a new content item that includes paragraph fields (like a page or article), you will see the "Disable Display" checkbox for each paragraph.

3: Test the Visibility Toggle

  • Create or edit content that contains paragraphs.
  • Set the Visibility Status for specific paragraphs to Disabled (unchecked).
  • Save the content and preview the page. Any paragraphs marked as disabled will not be rendered.
  • Re-enable the paragraphs by checking the "Disable Display" and saving the content again.

Paragraph Control module is now fully functional, and content editors can easily manage the visibility of individual paragraphs!

Project information

Releases