SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there some way to link an existing centralised document library to a new subsite?

In order to prevent users from saving documents in scattered places all over our website, we have our site definition remove the (new) Document Library that is created whenever a new site is created. Is there any way to programmatically add a short cut to the centralised document library, so when a user adds or uploads a file they are seamlessly redirected to or can easily select the central document library?

share|improve this question

This may be slightly simplistic but sometimes those are the things that get overlooked.

If you have deleted the OOTB document library on your site definintion then there is no reference to this on the site.

Surely you just need to edit the navigation and add a link to your central document library, you just need to ensure that your sub-site users have approriate permissions on the document library in question.

Or have I missed an obvious requirement here?

Hint: Look to the SPWeb.Navigation class for how to do this programatically:

share|improve this answer
We were wanting to redirect the uploaded document behind the scenes, without the user having to choose the library in the Document Centre. It looks like we'll end up using the Content Organiser feature to do this for us. – Stark Oct 1 '10 at 14:52

Well you can use the same behavour as exhibited by "Send To" option in the ECB menu of a document library, which sends a copy os the document to configured doc library.

share|improve this answer

I recently wrote my first blog post about this very topic:

share|improve this answer

Your Answer


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.