Trigger to detect change of filename


#1

Is there any way a trigger could detect a change in an assets File Name details? 

 

We have authors who occasionally update document assets using a different filename. As we have many external sites referencing assets on our site (Unrestricted Access by default), I encourage authors to retain filename when updating assets to avoid breaking links from external sources when possible.

 

An Ideal situation would be a warning to appear (+ continue/cancel button) when an existing file asset is being updated with a file with an alternate filename.

 

Cheers for any help.


(Bart Banda) #2

You can't really stop them from doing it, but should be able to set up a trigger that sends an email if someone does it. Probably use the asset attribute changed event and listen out for file name changes to file assets as the conditions. 


#3

Cheers Bart, I reckon that's a pretty graceful alternative.