Dan Lewis' Development and Technology Blog

SharePoint 2010 Document Center–Changing the “Upload a Document” button to upload to the Drop Off Library

Posted by: djjlewis on: 13/08/2011

At my current client, we are going to be using a single SharePoint Document Center site that will contain multiple libraries for published, enterprise documents. The document types will be “logically” different and managed by different publishers, so we want to keep them in separate libraries, but would like to keep them in the context of a single document center site collection in order to better control the governance and storage of these documents.

As a side effect, this means that we will not need the default and very generic “Documents” library, which is what the “Upload a Document” button on the welcome page of the document center is set to upload to by default.

Ideally, I would like to make use of the new “content organiser” in order to route documents to the correct library and folder based on the content type and any metadata field values, but I would like to also keep the nice and easy “Upload a Document” button for quick and easy uploads.

Fortunately the solution to this is very simple:

Edit the welcome page from Site Actions, and then click on the “Upload a Document” button. You will see this is actually just a content editor web part, so from the ribbon, under “Editing Tools” / “Format Text” click the HTML drop-down and then “Edit HTML Source”.

Replace the reference to the “Documents” library with “DropOffLibrary” i.e.:

<div class="ms-uploadbtnlink"><button onclick="javascript:OpenNewFormUrl('DropOffLibrary/Forms/upload.aspx');return false;" type="submit"><nobr><img alt="Upload a Document" src="/_layouts/Images/uploaddoc.png"/> <span>Upload a Document</span></nobr></button> </div>

Save or stop editing the page and your done! The “Upload a Document” button will now default to uploading document to the Drop Off Library!

Advertisement

1 Response to "SharePoint 2010 Document Center–Changing the “Upload a Document” button to upload to the Drop Off Library"

That button changes the code back after editing.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


  • Felipe: Excellent!! Great advice! it worked for me
  • luckybhumkar: Your help solved my problem thanks buddy for this nice hellp!
  • Craig: Thanks, this saved some troubleshooting time. Got to love those descriptive error messages.

Categories

Follow

Get every new post delivered to your Inbox.