Is there a standard Sitefinity way to allow designers to update CSS without them working directly on the web server files? Would be nice for these files to be versioned like pages, allow drafts and publishing, etc. Right now we are using Feather Resource Packages and keeping the CSS in there but I would rather our designers have a means to update CSS without a developer having to deploy files to the production servers (which the designers can't and won't be able to do on their own).
That may work. Change your layout files to point to the resource in the library. If you make it a file system library that will be faster delivery than a DB library.
You may also want to consider adding the CCS widget which allows linking to a CSS file or create a custom one.
This would allow the designer to edit the page assign a different version and preview without affecting the whole site. (This may or may not be a practical for your site)
The file storage works just like the database. The file details are all in the database juts that the physical binary is stored on the file system rather than in a database column.
You will find they are all stored under App_Data/Sitefinity/Storage/.. (I forget exactly)
All the files are stored as GUIDs with no exten. The guid references the row in the database. If you do decide to use File storage keep in mind that when you backup your DB you also need to backup the Storage folder with the files.
When you restore you also need to restore the folder as the folder is now an extension to the database data.
Hopefully that makes sense.
By default I don't use FileSystem storage expect for very large files. (Videos and pdfs for example) Actually I always use FileSytem for videos otherwise performance is an issue)
You can try implement this into your solution
The browser doesn't care. It looks at the url string you are providing in the markup. It has no idea if it is file system, web service, database or is even valid.
If it is different, then it considers it a new file and tries to get it.
That is a good point.
So that meta is stored in the database and the properties of the object when you retrieve it in your code.
Sitefinity has built-in file manager (Administration -> File Manager), in theory, designers can use that for uploading new css files
Right, but that doesn't give any type of versioning/publishing functionality. We don't want them making changes directly to the live system but do want them to be able to preview their changes. Plus since there doesn't seem to be any means to give fine grained control to the Administration section and we do not want them to have access to all of it, the File Manager is not really an option.
Would maybe placing the CSS files in a File Library work? It does allow for publishing. Not sure if it would work better as a Database or FileSystem library.
Cool, I like the CSS widget idea. I was wondering how the file libraries did drafts and if edits would show to the editor while logged in and viewing the site in order to preview it. I'll have to play with that a little and see how well it works.
Ok, I think I'll just stick with database storage for this if there is no real reason here to use the file system. These files will get cached in the browser (and our reverse proxy) anyway.
What about cache busting? For DB based files, is there something that automatically updates a version number in the query string when new versions are available?