Hi @Edardna,
Unfortunately, AEM does not provide a built-in “duplicate accordion item” feature inside multifields or component dialogs. Each item must be added manually through the dialog because Granite UI multifields don’t support copy/clone operations by default.
However, there are a few practical solutions depending on how your project is set up:
1. Use a Composite Multifield (Recommended)
If your accordion is using a composite multifield, authors can:
This only works if your component uses the modern composite multifield pattern:
<sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
composite="{Boolean}true"/>
If your accordion is still using the older multifield implementation, copy/paste is not available.
2. Enable Paste JSON in Multifield
You can add a small customization that adds:
This is done by adding a custom clientlib that listens for foundation-contentloaded and enhances the multifield.
It’s a common pattern used in many implementations.
3. Use CRXDE to Duplicate Nodes (Fastest for Authors)
If authors are comfortable with CRXDE or the Content Tree:
-
Navigate to the accordion component node
-
Expand items
-
Right-click any item -> Copy
-
Right-click parent items -> Paste
-
Rename the item if needed
-
Refresh the page editor
This instantly duplicates the entire structure including fields.
4. Add a Custom “Duplicate Item” Button (Custom Development)
If you want the exact button you showed in your mock-up, developers can add:
-
a custom Coral action button inside each multifield item
-
a JS handler that clones that item’s HTML, updates IDs, and inserts it as a new entry
-
A Sling model that persists it into the JCR
This is fully achievable but requires custom UI development.
What is NOT possible
Santosh Sai

