Deleting categories warning if used
I tested the following
Added a doc library
Added 10 documents to that library
Added 2 categories (internal/external)
Added category internal to 5 documents
Added category external to 5 documents
created a page
document downloadlist
selected the doc library
filtered by categories (internal)
Works like a charm and thats one way to use categories for filtering data in a download list for example.
----------
Now if you delete a categories (internal) for example you will not be warned that this categories is used and the categories will be removed from element categorized with that cat.
So actually even though the docs would be still in the library the download list would not display any of the docs since the cat was removed from the docs
---------
I know that if you had to remove the cats from every item that uses it it could be a lot of work ...
BUT
It would be nice to get a warning like
This categories is used in 5 news items, 4 events, 5 documents - Would you like to delete the categories and have this categories removed from these items?
It would prevent a couple of hours work maybe for one quick deletion.
Markus
This is similar to what I had suggested in UserVoice site. Here is the link
sitefinity.uservoice.com/.../844233-prevent-used-files-from-being-removed
This feature got 40 votes which fell in top 4 but never made to PITS.
I think it would be handy to have this feature. We are using ver 3.7. Each department maintains their own pages and I already had many cases when users delete a file and the page where the file was referenced to has dead link.
Getting warning saying that the file or whole category is being using is such and such page would be great.
thanks
Rabindra
Hello guys,
I completely agree. In that sense of thoughts, there could be an analytics screen showing the most used items, medias or tags/categories.
We'll see what can be done about this.
I know this is a year old+ thread...But I just had an instance where I have a custom module widget on a page that contains documents. One of those documents had been deleted in the backend and the widget was throwing an error when I tried to get the document.
var document = libraryManager.GetDocument(cl.ChildItemId);
Basically the custom module had the contentlink still in it, but there was no document to get based on the childitemid.
Is there no way to prevent documents from being deleted if they are residing in custom modules?
Hi,
Could you please tell us what is the Sitefinity version you are using so we could test the behavior on our side?
Regards,
Stefani Tacheva
the Telerik team
I have not checked if 6.0 gives a warning if tags or categories are used when deleting.
If not, I still think it could save some from trouble.
Markus
Hello,
When you are trying to delete a category there is a warning message: