Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I'm a complete newbie in sharepoint so this is an easy question.

I've uploaded a .css to the Style Library and am looking for an easy way to change it. (ctrl+s to save and F5 to refresh page)

What is the best way to do this?

share|improve this question
add comment

2 Answers 2

up vote 2 down vote accepted

When you do an upload using the web interface or SP designer, it does not have a physical location. It is stored in the database.

You could initially deploy your file into the Style Library using a "Feature" instead, which means you will have a physical file on the filesystem in your Feature folder. You can use this file to repeatedly perform your edit/save/refresh sequence with no delays.

Note that as soon as you modify/overwrite this file through the web interface or SP designer, you lose the ability to change the file on the filesystem and see it's changes.

share|improve this answer
    
thanks, will do it that way –  thomas.stock May 5 '10 at 14:41
add comment

@Jaap Vossers - The method you describes do not work. At least not in MOSS 2007. There you had to manually delete the file from the Style Library and then reactivate the feature to get an updated file. Maybe this has changed in 2010?

share|improve this answer
    
I'll give it a try and see if it works. –  thomas.stock May 5 '10 at 14:42
    
@JWL I have no trouble getting it to work in MOSS2007, it's not new in SP2010 –  Jaap Vossers May 6 '10 at 9:08
    
@Jaap Vossers - What kind of dark magic do you have in your elements xml? :) –  JWL_ May 6 '10 at 13:38
    
It's called CAML :p –  Jaap Vossers May 10 '10 at 21:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.