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

In my organization we have many Sharepoint sites for different products that basically mirror each other in structure. We have a document library in each of these sites with a custom template. The template is the same for each site.

Occasionally the template needs to be updated. This can be accomplished through the Web interface but it is very tedious with so many sites. I need a way to programatically upload a new template file to the Forms subdirectory of each document library without using the object model. I do not have access to the server itself.

I have already tried to do a simple HTTP PUT but this fails, even though I can upload to the library itself in this way. Is this possible through the Web Services interface or by some other method?

share|improve this question
    
Why can't you use the object model? –  RJ Cuthbertson Aug 29 '12 at 13:50
    
I understand that the object model requires your code to reside on the server. I do not have access to the server. –  Quincy Bowers Aug 29 '12 at 14:28
    
Why not try to use the Client Object Model? It's the OM for the client side. –  RJ Cuthbertson Aug 29 '12 at 15:06
    
From what I have read the Client Object Model is available for SP2010 and later. I am on SP2007. Is this not correct? –  Quincy Bowers Aug 29 '12 at 15:44
    
No you are... I missed that little tidbit of information. –  RJ Cuthbertson Aug 29 '12 at 15:45
add comment

1 Answer

up vote 1 down vote accepted

If you are willing to do a one time tedious job:

  • Create a content type at the Home Page (site collection level). Home -> all settings -> site content types.
  • Set it to utilize your template by going to advanced settings.
  • You can either upload your template here which means you will have to come back here to edit it or you can upload it to a document library at the top level and copy and paste the link. (from testing uploading elsewhere and copying the link seems to work slightly better)
  • Enable the management of content types in all document libraries. Document library settings -> advanced settings -> enable mangement of content types.
  • Apply that content type as the default to all of the document libraries.

Now whenever you edit the template at the top level all the changes will flow down.

NOTE: If you go this route please test on a couple document libraries to ensure it works before going through all of them.

share|improve this answer
    
Thank you for the suggestion. This seems like it would probably work well. Unfortunately, I don't have permissions to implement it myself so I will have to see if I can get the server admins to set this up. If I can get that done and it works I'll accept this as the answer. –  Quincy Bowers Aug 29 '12 at 15:47
    
@QuincyBowers You would only need contribute access to the Document libraries in question and the actual "Home Site." If you are a site collection admin and have full control on the site that will help as well. –  Realistic Aug 29 '12 at 18:19
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.