Copied to clipboard

Flag this post as spam?

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


  • Pagggy 28 posts 71 karma points
    Sep 06, 2018 @ 07:14
    Pagggy
    0

    Extend Copy functionality to show notification of copy & change some attributes for the new node

    Hi , I like to extend copy functionality to show message or dialog when copy finished. Also, when copy published page I want to set copied page as unpublished and set username of the person who copied page instead of original page creator.

    Any help really appreciated.

  • Sven Geusens 169 posts 881 karma points c-trib
    Sep 06, 2018 @ 10:28
    Sven Geusens
    0

    Hey Pagggy

    You can do this using the Copying or Copied event on the contentservice https://our.umbraco.com/documentation/reference/events/contentservice-events.

  • Pagggy 28 posts 71 karma points
    Sep 10, 2018 @ 07:55
    Pagggy
    0

    Thanks Seven, Managed to extend ContentService.Copying

       protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
            {
                ContentService.Copying += ContentServiceOnCopying;
    
            }
    
        public void ContentServiceOnCopying(IContentService sender, CopyEventArgs<IContent> copyEventArgs)   
    
         {
         // Change property
        }
    
Please Sign in or register to post replies

Write your reply to:

Draft