Libraries module does not support versioning. If you use Iamge Gallery or Image control on a page the image will be removed and you will not have a broken link. You can have broken link only in case you use GenericContent control where the image url is added as HTML.
It is quite difficult to detect whether you have a link to an image declared in a GenericContent control.
1. You have to create a custom web service with a delete method inside it.
2. You have to map the external template for LibraryItemsView.ascx How to map a template
and replace the built-in web service.
3. Inside the del;ete method you need to find all generic content controls using the code below, get the content of each instance and check the sfref attribute of img tag which will return the ID of the Item, so you will know whether you are trying to delete this image.
Telerik.Cms.CmsManager cmsManager =
IList list = cmsManager.GetPages()
IList<Telerik.Cms.ICmsWebControl> pageControls = currentPage.Staged.Controls;
Telerik.Cms.Engine.WebControls.GenericContent gcCtrl = webCtrl.LoadControl()
var cnt = gcCtrl.Content
All the best,
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items