Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Fabian 68 posts 172 karma points
    Jun 17, 2016 @ 08:02
    Fabian
    0

    Add custom action in content edit page

    Hi Everyone,

    You know that in the top right corner of every content edit page in the umbraco back office there is the action button, which when clicked, a list of actions one can do, like for example: delete, move, etc., is revealed.

    Now my question is if anyone knows if you can add a custom action with the ones that there is already?

    I have did some research but came up short that is why I am asking here.

    Any help would be greatly appreciated.

    Thanks

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Jun 18, 2016 @ 16:54
    Alex Skrypnyk
    0

    Hi Fabian,

    I think you need to do like in this article:

    http://www.wiliam.com.au/wiliam-blog/adding-a-custom-control-to-umbraco-7-action-menu

    Is it what you really need?

    Thanks, Alex

  • Fabian 68 posts 172 karma points
    Jun 20, 2016 @ 08:40
    Fabian
    0

    Hi Alex,

    I have read that while doing my research, but for some reason I didn't think it was valid for my needs. I will now look deeper into it.

    All I want to do is replicate the copy functionality and do some extra logic.

    Thanks a lot

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Jun 20, 2016 @ 14:32
    Alex Skrypnyk
    0

    Fabian, maybe you can just subscribe on 'copy' event and add some extra logic?

    https://our.umbraco.org/documentation/reference/events/contentservice-events

  • Fabian 68 posts 172 karma points
    Jun 20, 2016 @ 14:56
    Fabian
    0

    Alex, that what I was thinking, just needed to see if there is a better way beforehand, because in this way I will be limiting the user from doing a normal copy but I don't think that in my case they need to so it will not be a big deal.

    Thanks a lot you are really helpful

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Jun 20, 2016 @ 15:37
    Alex Skrypnyk
    0

    Fabian, you are welcome, I want to help you more. But looks like you have 2 ways - create custom action or override event.

Please Sign in or register to post replies

Write your reply to:

Draft