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)

Command icon 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

TrevorBradley created an issue. See original summary.

deaom’s picture

Status: Active » Needs review
StatusFileSize
new2.67 KB

Added "Clone" option to contextual links (the pencil icon).

deepalij’s picture

Verified 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:
before

After patch:
after
after

RTBC +1

tim-diels’s picture

Version: 8.x-1.x-dev » 2.x-dev
Status: Needs review » Reviewed & tested by the community

The 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.

Rajeshreeputra made their first commit to this issue’s fork.

rajeshreeputra’s picture

Status: Reviewed & tested by the community » Fixed

Merged, will release it shortly.

  • 19d7920 committed on 2.x
    Issue #3039580 by Rajeshreeputra, DeaOm: Add "Entity Clone" to In line...

Status: Fixed » Closed (fixed)

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

kristen pol’s picture

@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.

rajeshreeputra’s picture

kristen pol’s picture

@Rajeshreeputra Thanks for addressing this and so quickly :)