Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Layout Paragraphs Disable Duplicate

No security coverage Drupal 10–11
View on drupal.org

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.

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.

Activity

Tracked releases
3
Tracked since
Feb 2026
Latest release
2 months ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

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