[PAGES-49] Offer duplication of an existing component in page editor Created: 02/Dec/15  Updated: 09/Mar/21  Resolved: 19/Jan/16

Status: Closed
Project: Magnolia pages module
Component/s: None
Affects Version/s: 5.4.3
Fix Version/s: 5.4.4

Type: New Feature Priority: Critical
Reporter: Andreas Weder Assignee: AntonĂ­n Juran
Resolution: Fixed Votes: 0
Labels: page-editor, quickwin, usability, ux
Remaining Estimate: 0d
Time Spent: 1d 4h 40m
Original Estimate: Not Specified

Attachments: PNG File 1 Select and click action.png     PNG File 2 Duplicate added below and selected.png     PNG File Screenshot of existing implementation.png    
Issue Links:
Relates
relates to PAGES-378 Reinstate "Duplicate component" action Closed
dependency
depends upon PAGES-41 Selection and visibility state of edi... Closed
duplicate
duplicates MGNLUI-3153 Duplicate components in in the page e... Closed
relation
is related to MGNLUI-2927 A duplicated item should be added rig... Closed
is related to MGNLUI-3467 A duplicated item should be selected ... Closed
is related to PAGES-52 Added and Duplicated components shoul... Closed
is related to PAGES-62 Disable duplicate action in 'single' ... Closed
Template:
Acceptance criteria:
Empty
Date of First Response:
Epic Link: AX: improve page editor
Sprint: Kromeriz 27
Story Points: 3

 Description   

We should offer a way to add a new component by duplicating an existing component from the same area. The ability to add a new component by duplicating an existing one is requested on a regular basis.

One way to quickly add any type of content is to quickly duplicate an existing element, which has a similar type, is located at a similar location or contains similar content. This is also true for adding new content on a page, especially if you build repetitive structures like links, tables, teasers, carousels and the like.

In fact, the marketing team already uses a "duplicate component" action on the corporate website, which we should at least take as a starting point for an implementation in the product, as it has been used in production since Spring 2015.

As is the case with duplication of items elsewhere, duplicating a component should:

  • Add the duplicate right after the component that was duplicated
  • Select the duplicate and make sure it's in view, so that I can keep working on it right away. Any previously selected element on the page should be deselected before that. - separated to PAGES-52

We'll add the "duplicate component" action between "edit component" and "move component" to align the order of actions with the one used in other apps. Unfortunately, our current "duplicate" icon lends itself to pages/files too much, but we'll still stick to it to ensure consistency.



 Comments   
Comment by Andreas Weder [ 02/Dec/15 ]

Added dependancy on PAGES-41 as we may only usefully preserve the selected state of the duplicate after a page reload, if that issue has been tackled.

Comment by Jan Haderka [ 02/Dec/15 ]

If I may contribute something again, such action is readily available at https://github.com/rah003/neat-tweaks/blob/master/neat-tweaks-editors/src/main/java/com/neatresults/mgnltweaks/ui/action/DuplicatePageComponentAction.java

Feel free to use it.

Comment by Florian Fuchs [ 09/Mar/16 ]

mmh, so the label "Duplicate component" is not i18n-ized?

Generated at Mon Feb 12 06:15:07 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.