Problem/Motivation

With nesting, sometimes complex constructions of paragraphs should be cloned to create multiple similar elements.

Currently, a user needs to rebuild the structure with clicking "Add XYZ" multiple times.

Proposed resolution

Every paragraph level should offer an action "Duplicate" that duplicates the paragraph itself and its children.

Remaining tasks

#2829316: Implement "duplicate paragraphs" feature
#2909416: Hide duplicate action while translating

User interface changes

Duplicate action in Paragraphs widget, right alinged.

API changes

Data model changes

CommentFileSizeAuthor
#2 upload_11_15_2016_at_10_10_34_AM.png86.49 KBdrobnjak

Comments

miro_dietiker created an issue. See original summary.

drobnjak’s picture

Issue summary: View changes
StatusFileSize
new86.49 KB
johnchque’s picture

Issue summary: View changes

Added first step. Might be done soon.

miro_dietiker’s picture

Status: Active » Needs work

We need extensive test coverage that verifies cloning works with multiple levels of nesting and that new IDs result and instances are not mixed up at all.

One question is always coming up - how much is this related with the replication UI module? We should check combined and make sure we are not creating double duplicate entries ever.

miro_dietiker’s picture

Issue summary: View changes

Added issue :-)

miro_dietiker’s picture

loopduplicate’s picture

Are there plans to backport to D7? Is there an existing META issue for D7?
I found the following ticket: #2588469: Cloning paragraph items within same paragraphs field

loopduplicate’s picture

Issue summary: View changes
miro_dietiker’s picture

We are not backporting anything. D8 is way advanced and backporting anything would slow down our progress. Instead you should upgrade. :-)

miro_dietiker’s picture

Status: Needs work » Fixed

This is pretty much done.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.