Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
how to edit the message shown when deleting a document type,
I want to show a list of content pages that use this document type before deleting it.
You can do this with an angular interceptor. I wrote an article for skrift talking about this : https://skrift.io/articles/archive/changing-backoffice-functionality-without-changing-core-code/
You can also see it at work in my nexu package where I replace the content and media delete dialogs with my own.
Intercepting the delete view request and replacing it with my own view :
Custom delete view :
Custom delete controller :
This controller inherites from a base delete controller ;
This base controller inherits the default umbraco controller. So I can reuse all the logic in there.
But you could also raise a feature request for it on https://github.com/umbraco/Umbraco-CMS/issues/new/choose
Maybe somebody will pick it up and create PR for it. That someone could be you.
Thank you for your reply,
I've downloaded your package and its great, but when I delete a content page the message doesn't show the pages the linked to it?
did I miss anything?
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted