Skip to content

DanielMoody/node_duplicate

Repository files navigation

Node Duplicate

Adds a simple way to duplicate content in Drupal.

  • Duplicate a single node from the content list
  • Duplicate multiple nodes using bulk actions
  • Creates unpublished copies with a “(Copy)” suffix

Installation

Install via Composer:

composer require cms-alchemy/node-duplicate
drush en node_duplicate

Features

Row-level duplicate

Adds a Duplicate link to each node on /admin/content.

Safe defaults

  • Copies all field values
  • Sets the current user as author
  • Marks duplicates as unpublished

Behavior

  • Title becomes: Original Title (Copy)

  • Status: - Unpublished (if supported)

  • Author: - Set to the current user

  • References: - Entity references are reused, not deep-copied


Limitations

  • Designed for nodes only
  • Does not deep-copy referenced entities (e.g. media, paragraphs)
  • Does not handle unique field constraints automatically
  • Does not copy revision history

Notes

This module uses Drupal’s built-in Entity::createDuplicate(). No custom duplication logic is implemented.

About

A drupal module that adds a 'Duplicate' operation to the content listing

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages