Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Clone Nodes

No security coverage
View on drupal.org

The purpose of this module is to allow a node or group of nodes to be cloned from the admin screens.
A 'Clone node' action is added to the admin/content page (see screenshot).

This module works on all types of nodes, including those that contain paragraphs, and it creates a true 'deep copy'.

The new node is an exact clone of the original i.e. it will have exactly the same title, all fields will be identical and even the publishing
state will be the same (if content_moderation is installed, the moderation state will be the same).

The only way to distinguish the cloned node from the original is that the node id (nid) will be different.

I discovered that I needed this module when I was doing a lot of migration work. Sometimes there were node id (nid) clashes between the source and destination Drupal sites. I needed a way of changing the nid on a node or nodes and deleting the original so that the migration would complete successfully.

You may think that we don't need another module to clone nodes and that was my first thought too. I was surprised to find that none of the other modules were an exact match for my requirements, which are:

  • Cloned node must be identical in every way to the original
  • Even the published/moderation state must be replicated in the clone
  • It must be possible to select any number of nodes on the admin/content page and then clone them by clicking 'Apply to selected items'

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
Jul 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core Release date
1.2.x-dev Dev Jul 10, 2023