Try our conversational search powered by Generative AI!

Inform editor when deleting a page if other pages use its body text etc. Existing or new function?

Vote:
 

Hi,

There is a function in Episerver that informs an editor that he's about to delete a page that other pages link to. Is there also a function that informs the editor if he's about to delete a page whose body text etc some other page gets/uses (dynamic function)?

If there is no such function, how can I create one?

Thank you!

#188300
Feb 19, 2018 11:28
Vote:
 

Hi,

You can add custom logic to override the content events in Episerver, please see: https://world.episerver.com/forum/developer-forum/-Episerver-75-CMS/Thread-Container/2016/6/in-episerver-8-how-can-i-override-the-publishsave-event/

How you would fetch and check the usages of the text however, I am unsure. If you had the re-used content in the form of blocks you could do like Ryan Vux explains here: https://world.episerver.com/Modules/Forum/Pages/Thread.aspx?id=188500#188563 and warn the user if the timesUsed > 1.

#188583
Feb 27, 2018 12:36
Vote:
 

Hi Jonathan,

This function is postponed by the customer.  I'll take a closer look then and let you know how it goes. Thank you very much for your reply!

#188891
Mar 06, 2018 13:00
* 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.