I have a scenario where the client has asked us to store one of the CSS files in the media library so they can make changes to colors without coming back to the developers. I've gotten this working with the media library and using the guid in the CSS call on the page (in case someone moves the item accidentally).
What I'd like to also do is make it so when the item is saved, it automatically creates a new version, so there's a rollback version in case someone makes a mistake. I've been reading that there's some way to make this happen by default in Sitecore if you're not an admin and you have a workflow on the item, but I tried that and didn't see the version increment.
If there's no out-of-the-box way of doing it, I'm guessing using the item:saved pipeline would be the way to go, but I'm open to other suggestions if folks have run into a similar scenario.
versioned
andunversioned
media? Also, make sure that the templateFile
has standard values and also set the workflow on it