Today right click in pages, components and other sidebar options based on wcm-root-folder.js do not support duplicate operation. Add this option to the right click.
position in the right click
The order of options should be:
Cut
Copy
Paste (if item on clipboard)
Duplicate
existing duplicate on context nav
Today, you can invoke a duplicate from the context navbar (see wcm_content.js plugin) when you are looking at a page in preview or when you select it on the dashboard.
Common API contains an Operation for duplicate. The menu just calls the operation as shown above.
The operation takes care of creating the new content and automatically opening the form.
I believe the Operation takes care of all of the logic we need. The on success and on failure callbacks of the operation need only handle actions related to the wcm-root-folder tree itself:
On success, re-render the right clicked node's parent so the new item shows
On failure: report the issue to the user via dialog
the need/requirements
Today right click in pages, components and other sidebar options based on wcm-root-folder.js do not support duplicate operation. Add this option to the right click.
position in the right click
The order of options should be: Cut Copy Paste (if item on clipboard) Duplicate
existing duplicate on context nav
Today, you can invoke a duplicate from the context navbar (see wcm_content.js plugin) when you are looking at a page in preview or when you select it on the dashboard.
From wcm_content.js
implementation notes
Common API contains an Operation for duplicate. The menu just calls the operation as shown above.
The operation takes care of creating the new content and automatically opening the form.
I believe the Operation takes care of all of the logic we need. The on success and on failure callbacks of the operation need only handle actions related to the wcm-root-folder tree itself:
applies to
2.5.x, 3.x