Check if the image is being used in the website
Permalink 1 user found helpful
I have a website which has multiple admin's and one of them delete's the image from file manager which is live on the website without knowing that its live.
Could i get to know the particular file is live and warn the member before deleting.
Could i get to know the particular file is live and warn the member before deleting.
Yes, I also am interested in this. Some kind of indication a file/image is beeing used.
Good idea, but hard to achieve, I think. Each block, add-on, theme, etc. can save references to a file differently. E.g it may be 'id', 'fID', 'fileID', 'file', 'bg_image', etc... you might get some results by e.g. going through the block output cache, or looking in the btContent table, but it'll never be a solid number. And if it's not a reliable number, it's pretty much useless in this context, I think.