Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module allows you to hide the "Duplicate" button for specific paragraph types within the Layout Paragraphs builder. This is useful for preventing accidental duplication of buggy or editorialy inappropriate paragraph types. You can easily configure which paragraph types should not have the duplicate option directly from the module's settings page.

Hides the duplicate button for selected paragraph types in the Layout Paragraphs builder. Use it when duplication causes issues or when certain types should not be duplicated.

Features

The module adds per-paragraph-type control: you choose exactly which paragraph types have the duplicate control hidden; other types are unchanged. Configuration lives under Configuration > Content > Layout Paragraphs settings as a Disable Duplicate tab. No code or theme changes are needed—enable the module, pick types in the form, and save. It applies in the standard Layout Paragraphs UI and in any editor that uses it (e.g. Mercury Editor).

When to use it:

  • A paragraph type has bugs or odd behavior when duplicated (e.g. view mode or style only updating after save), and you want to disable duplicate until that is fixed.
  • Certain paragraph types (e.g. manual listings, complex components) should not be duplicated for editorial or UX reasons.
  • You want a single place to control which types can be duplicated without patching or custom code.

Post-Installation

After installing, go to a config page—no new content types or text formats are added.

  1. Enable the module: Go to Extend, find Layout Paragraphs Disable Duplicate, enable it, and install.
  2. Configure which types hide duplicate: Go to Configuration > Content > Layout Paragraphs settings, open the Disable Duplicate tab (or go directly to /admin/config/content/layout_paragraphs/disable-duplicate), check the paragraph types for which the duplicate control should be hidden, and click Save configuration.
  3. Result: In the Layout Paragraphs builder (and in Mercury Editor or other editors using it), components of the selected paragraph types will no longer show a Duplicate button. Edit, Delete, drag, and reorder are unchanged.

Additional Requirements

Beyond Drupal core (10 or 11), this project requires:

No external APIs or non-Drupal libraries are required.

Mercury Editor: If you use Mercury Editor for page building, this module's settings apply there as well; duplicate will be hidden for the same paragraph types you configure.

Similar projects

Layout Paragraphs does not ship a way to disable duplicate per paragraph type. This module fills that gap with a single config form and no custom code in your theme or other modules. Other approaches (e.g. hiding the button with CSS or customizing the builder UI) require more maintenance; this module uses Layout Paragraphs' existing access control so the duplicate link is not rendered at all for selected types.

Supporting this Module

If you find this module useful, consider contributing back: issue reports, patches, or documentation on the project issue queue help keep it maintained.

Additional information: Configuration is stored in layout_paragraphs_disable_duplicate.settings under the key disabled_paragraph_types (a list of paragraph type machine names). The module does not alter permissions; it only affects whether the duplicate control is shown. Users who can edit the layout can still add new components of the same type; they just cannot duplicate existing ones for the types you disable.

Activity

Total releases
3
First release
Feb 2026
Latest release
1 month ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.0.1 Stable Jun 16, 2026
1.0.0 Stable Mar 20, 2026
1.0.x-dev Dev Feb 4, 2026