1

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?

5
  • Why can't you use the object model? Commented Aug 29, 2012 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. Commented Aug 29, 2012 at 14:28
  • Why not try to use the Client Object Model? It's the OM for the client side. Commented Aug 29, 2012 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? Commented Aug 29, 2012 at 15:44
  • No you are... I missed that little tidbit of information. Commented Aug 29, 2012 at 15:45

1 Answer 1

1

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.

2
  • 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. Commented Aug 29, 2012 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
    Commented Aug 29, 2012 at 18:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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