Customise delete dialog for a component.
Hi,
Is there a way in AEM that you can cusomise the delete dialog for a component?
What I'm am aiming to do is to detect if there is a content reference to the component that is about to be deleted. And would like to display in the delete dialog itself a list of paths where it is being reference elsewhere on the site. Thus the user can decide if the delete is a wise choice or not.
I have managed to hook into the 'beforedelete' in the 'EditListenersConfig', but that will only trigger when the 'delete' button is pressed. So not ideal.
Thanks,
David Miller