Try our conversational search powered by Generative AI!

Improved content events for Episerver CMS

  1. Remove the need to cast event args to get relevant information on content events. For instance on the move event you need to cast the ContentEventArg to MoveContentEventArgs to get the descendents
  2. Create a new event for if the content is thrown into wastebasket. This is special case of the move event today which is not very obvious and leads to mistakes.
  3. Make it more clear what content is actually affected. For instance the delete event gives you the content link property but that doesn't point to the content that is actually deleted but to wastebasket. It is possible to get the affected content that was deleted if you first cast the event to the DeleteContentEventArgs and use the DeletedDescendents property but that is pretty far from obvious.
  4. Create a new event if a content is affected by a change to url on a parent. This is tricky to solve today but easy to create a new event for. 
  5. Make ContentSecuritySaved event part of the IContentEvents interface. This is now pretty well hidden in the IContentSecurityRepository interface. But it is a very relevant content event that you will likely want to handle together with the other events. 
  6. Create a combined new event that handles if content has been changed in any way including url for parent, access rights, published, moved, thrown into wastebasket. That will simplify creating custom logic like indexing content a lot. 
Jun 20, 2019 13:44

good additions, however not sure about last one. will that overlap with other events, wouldn't it be possible to subscribe "accidently" twice?

Jul 02, 2019 0:43
This thread is locked and should be used for reference only.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.