Creating a document library

This page explains how to create a document library on your website. We will create a sample page with two Document library web parts, each displaying files from a different folder.

The first step when creating a document library is to choose a location in the site’s content tree where the files will be stored. A single document library web part can display documents from only one location. As we want two separate libraries on a single page, we will create a page in the content tree where two Document library web parts will be placed. Under the page, we will create two separate folders where the actual files will be stored.

  1. Open the Pages application.
  2. Select the root of the content tree.
  3. Click New ().
  4. Choose the Page (menu item) document type.
  5. Type My document library into the Page name field and choose the Create a blank page option.
  6. Click Save.

Next, create the folders:

  1. With the new document selected, click New ().
  2. Choose the Folder document type.
  3. Type My images as the Document name.
  4. Click Save.
  5. Repeat the same once again to create another folder named My Office documents.

You now have a page and two child folders.

Page and folder documents in the content tree

Now add the document libraries to the page:

  1. Select the My document library document.
  2. Switch to the Design tab.
  3. Add the Document library web part.
  4. Configure the web part’s properties:
    • Library path: /My-document-library/My-images
    • HTML Envelope -> Content before: <h2>My images</h2>
  5. Click OK.
  6. Add another Document library web part to the page. Set the following properties:
    • Library path: /My-document-library/My-Office-documents
    • HTML Envelope -> Content before: <h2>My Office documents</h2>
  7. Click OK.

You can now see the document library web parts on the Design tab.

Adding the document library web parts on the Design tab

The document libraries are now configured and ready to be used by live site users. Please proceed to the Managing files in document libraries page to learn how live site users can upload and manage document library files.