Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Paragraph Control

No security coverage Under active development

This module adds a "Disable Display" field to paragraph types, allowing content editors to easily hide or show individual paragraphs without deleting them. Disabled paragraphs will not appear on the website, offering flexible content management.

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!

Ask your assistant about Paragraph Control

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Sep 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
1.0.x-dev Dev 10 Sep 18, 2024