Wondering if "Entity Clone" can be added not only to the contextual links on the content page, but also to the inline contextual editing (the pencil icon on a node view page).
I've got a use case where I'm rendering multiple nodes on a page - the nodes in a heirarichcal structure. It would be handly if I could select "Clone" direct from the view page pencil icon.
(I gave implementing this a shot but hit a brick wall - I might come back to it)
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | After patch - clone option on homepage.png | 54.95 KB | deepalij |
| #3 | After patch - clone option on node view.png | 89.5 KB | deepalij |
| #3 | Before patch.png | 49.88 KB | deepalij |
| #2 | 3039580-2.patch | 2.67 KB | deaom |
Issue fork entity_clone-3039580
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
deaom commentedAdded "Clone" option to contextual links (the pencil icon).
Comment #3
deepalij commentedVerified and applied patch #2 on Drupal version 9.5.x-dev.
The patch was applied successfully.
After applying the patch, the "Clone" option is available to Inline editing Contextual Links.
Before patch:

After patch:


RTBC +1
Comment #4
tim-dielsThe patch works for 2.x and should address the latest version. So changing to 2.x
Works perfectly and tested with also with the patch to limit permissions per content type per role. So RTBC for me.
Comment #7
rajeshreeputraMerged, will release it shortly.
Comment #10
kristen pol@Rajeshreeputra Thank you for merging this work. If you are not familiar, community members who worked on the issue can be given "issue credit" by checking the boxes next to their names and saving a comment. For example, the patch was tested in #3 and #4. To encourage community members to test this module's patches, I encourage you to give credit when people not only add patches but also review and test patches. The credit system relies on maintainers to decide who should get this credit and it has to be done manually. Only those who upload patches or create MRs get automatic credit (which can be removed if maintainers don't think it's earned). Thanks.
Comment #11
rajeshreeputraComment #12
kristen pol@Rajeshreeputra Thanks for addressing this and so quickly :)