Copied to clipboard

Flag this post as spam?

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


  • Linden Koppejan 15 posts 165 karma points
    Jun 05, 2024 @ 09:53
    Linden Koppejan
    0

    Intercept content beeing saved with ContentService Notifications

    Hello there

    I want to change the name of a node when its beeing saved. Therefore I've seen the following link: https://docs.umbraco.com/umbraco-cms/v/12.latest/reference/notifications/contentservice-notifications#saving

    Sadly my solution is not recognizing notification.SavedEntities.

    I only want to change the name when it's of a special doc type e.g PageSpecial.

    Can someone help me understanding what returns a enumerable of the currently beeing saved nodes?

  • Marcio Goularte 389 posts 1362 karma points
    Jun 05, 2024 @ 13:07
    Marcio Goularte
    0

    Hello,

    To be able to help, I need to understand if you followed all the steps described here in the documentation

    https://docs.umbraco.com/umbraco-cms/fundamentals/code/subscribing-to-notifications

    See if any steps are missing. If not, share code you made.

    Normally when a Notification does not happen it has to do with dependency injection registration

    builder.CreateUmbracoBuilder()
     .AddBackOffice()
     .AddWebsite()
     .AddDeliveryApi()
     .AddComposers()
     .AddNotificationHandler<MySavingNotification, MySavingNotificationHandler>()
     .Build();
    
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies